This file contains hidden or 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
isAndroid = (Ti.Platform.osname == 'android') ? true : false; // Detect Android OS | |
Ti.UI.orientation = Ti.UI.PORTRAIT; // Force portrait view | |
if(isAndroid === true)// Force orientation to maintain portrait | |
{ | |
Ti.Gesture.addEventListener('orientationchange', function(e) | |
{ | |
Ti.Android.currentActivity.setRequestedOrientation(Ti.Android.SCREEN_ORIENTATION_PORTRAIT); | |
}); | |
} // end if |
This file contains hidden or 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
/* | |
Directions: | |
1. Place all of your JavaScripts in the same folder as | |
this one, or resolve the path to match the scriptURI var. | |
2. Add the filenames of the JavaScripts you want to load | |
automatically as a comma seperated list of arguments | |
in the gLoadJS function call. | |
3. Link this JavaScript file to your HTML document, and |