Created
September 3, 2012 08:58
-
-
Save juanghurtado/3607984 to your computer and use it in GitHub Desktop.
Force portrait mode for Android on Appcelerator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (Ti.Platform.osname.match(/android/g)){ | |
Ti.Gesture.addEventListener('orientationchange', function(e) { | |
Ti.Android.currentActivity.setRequestedOrientation(Ti.Android.SCREEN_ORIENTATION_PORTRAIT); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment