I am working on creating an Android App using Sencha Touch, PhoneGap and PhoneGap's ChildBrowser
plugin.
I'd like to fix the orientation of the App itself to Portrait, but allow the ChildBrowser
to rotate to the orientation of the device.
I tried detecting when the ChildBrowser
activity is at onResume
, but this didn't work. (maybe because it's extending a Plugin?)
Found a similar thread here, but no solution yet: PhoneGap Fixed Orientation + ChildBrowser Non-Fixed Orientation (Android)
Any other ideas?
Well if you've set your activity to have the attribute android:screenOrientation="portrait" and you are using the ChildBrowser.showWebPage command you are stuck as that opens a dialog inside the app, that is, it is still part of the app.
However, if you use ChildBrowser.openExternal then it opens the browser and landscape will be enabled again.