- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
First I want to say that all the things work in the emulators but when I build it and test it on a device they don't.
I wanted to set my orientation to landscape so I followed the examples with :
document.addEventListener("intel.xdk.device.ready", onDeviceReady, false); function onDeviceReady(){ intel.xdk.device.setRotateOrientation('landscape'); intel.xdk.device.hideSplashScreen(); }
When I use it in "Test" mode, push the files on the server and then download the app from the cloud it works fine.
But when I build the app using Build-> Clicking Build for android from the "Cordova 3.X Hybrid Mobile App Platforms" menu, then download it and install it, it does not work.
You could say that I could build the app from the "Legacy Hybrid Mobile App Platforms" menu and then in the "Assets" menu to choose landscape. Yes that works but I want also to use hideStatusBar() which also requares the onDeviceReady event to fire.
I'm testing it on Galaxy S2 with Android 4.1.2
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why not use the below code?
$.afui.ready(function(){ console.log('afui is ready'); });
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For what library is the refference "$" here for? What should I include?
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page