I am building a mobile application using Cordova and Intel app framework. I try to set the orientation to portrait mode
var onDeviceReady = function () {
intel.xdk.device.setRotateOrientation('portrait');
intel.xdk.device.setAutoRotate(false);
intel.xdk.device.hideSplashScreen();
};
document.addEventListener("intel.xdk.device.ready", onDeviceReady, false);`
But when I check the build by installing the APK in Android 4.4, it doesnt work. It always rotate in both modes. Any suggestions?