View Full Version : how to set landscape view only for an application in Sencha Touch 2.0?
pm.sreejith
18 Nov 2011, 12:29 AM
Hi All,
how can we set landscape view only for an application?
I'm following sencha touch 2.0 pr2 with MVC pattern.
Any help would be appreciated....
stan229
18 Nov 2011, 7:57 AM
Well I'm assuming you're using something like PhoneGap to wrap the application.
Then you do this:
http://stackoverflow.com/questions/6052400/disable-auto-rotate-in-jquery-mobile-or-phonegap
For iPhone's plist:
<dict>
`.....
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
..........
</dict>
For AndroidManifest.xml
<activity ........ android:screenOrientation="portrait">
rdougan
18 Nov 2011, 2:26 PM
And to just follow up on stan229's reply, if you want to do this in a browser, it is not possible.
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.