I am working on a game in PhoneGap. My game requires the screen to be "locked" in landscape mode. I need it to be locked so that you cannot turn on the device in a different landscape mode by rotating the screen (therefore, no matter how the device rotates, the screen does not change orientation. It will remain the same as it was before). I tried looking at this question , but it did not work for me. I need a solution that I can use easily, and preferably with Android and iOS. I use tools for PhoneGap, so in the terminal I run:
phonegap run android
to create and install the application on your tablet.
javascript android ios cordova
pjrader1
source share