I want phonegap to always launch my Wikitude activity in landscape mode. I have it set in my AndroidManifest.xml (see below), but no luck. Is there another way to do this?
From your code, it seems that you are only defining an orientation for the Media player, not for the main activity of your application. How are the other activities defined in your xml file?
R
Richard
said
about 9 years ago
The main application is defined to be able to change orientation based on the phone's rotation:
Since the activity containing the ArchitectView in your application is the same as the main activity, it's not possible to lock the orientation only by modifying the manifest xml file.
This behaviour is specific to PhoneGap, you can try to use some other PhoneGap plugin to lock the orientation when you open the ArchitectView. For example:
Richard