<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Problems with onDeviceReady event in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Problems-with-onDeviceReady-event/m-p/1059335#M53348</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;First I want to say that all the things work in the emulators but when I build it and test it on a&amp;nbsp;device they don't.&lt;/P&gt;

&lt;P&gt;I wanted to set my orientation to landscape so I followed the examples with :&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;document.addEventListener("intel.xdk.device.ready", onDeviceReady, false);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
function onDeviceReady(){
&amp;nbsp;&amp;nbsp;&amp;nbsp; intel.xdk.device.setRotateOrientation('landscape');
&amp;nbsp;&amp;nbsp;&amp;nbsp; intel.xdk.device.hideSplashScreen();&amp;nbsp;&amp;nbsp; 
}&amp;nbsp; &lt;/PRE&gt;

&lt;P&gt;When I use it in "Test" mode, push the files on the server and then download the app from the cloud it works fine.&lt;/P&gt;

&lt;P&gt;But when I build the app using Build-&amp;gt; Clicking Build for android from the "Cordova 3.X Hybrid Mobile App Platforms" menu, then download it and install it, it does not work.&lt;/P&gt;

&lt;P&gt;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&amp;nbsp;onDeviceReady event to fire.&lt;/P&gt;

&lt;P&gt;I'm testing it on Galaxy S2 with Android 4.1.2&lt;/P&gt;</description>
    <pubDate>Sun, 22 Mar 2015 15:45:52 GMT</pubDate>
    <dc:creator>Slavi_I_</dc:creator>
    <dc:date>2015-03-22T15:45:52Z</dc:date>
    <item>
      <title>Problems with onDeviceReady event</title>
      <link>https://community.intel.com/t5/Software-Archive/Problems-with-onDeviceReady-event/m-p/1059335#M53348</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;First I want to say that all the things work in the emulators but when I build it and test it on a&amp;nbsp;device they don't.&lt;/P&gt;

&lt;P&gt;I wanted to set my orientation to landscape so I followed the examples with :&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;document.addEventListener("intel.xdk.device.ready", onDeviceReady, false);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
function onDeviceReady(){
&amp;nbsp;&amp;nbsp;&amp;nbsp; intel.xdk.device.setRotateOrientation('landscape');
&amp;nbsp;&amp;nbsp;&amp;nbsp; intel.xdk.device.hideSplashScreen();&amp;nbsp;&amp;nbsp; 
}&amp;nbsp; &lt;/PRE&gt;

&lt;P&gt;When I use it in "Test" mode, push the files on the server and then download the app from the cloud it works fine.&lt;/P&gt;

&lt;P&gt;But when I build the app using Build-&amp;gt; Clicking Build for android from the "Cordova 3.X Hybrid Mobile App Platforms" menu, then download it and install it, it does not work.&lt;/P&gt;

&lt;P&gt;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&amp;nbsp;onDeviceReady event to fire.&lt;/P&gt;

&lt;P&gt;I'm testing it on Galaxy S2 with Android 4.1.2&lt;/P&gt;</description>
      <pubDate>Sun, 22 Mar 2015 15:45:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Problems-with-onDeviceReady-event/m-p/1059335#M53348</guid>
      <dc:creator>Slavi_I_</dc:creator>
      <dc:date>2015-03-22T15:45:52Z</dc:date>
    </item>
    <item>
      <title>Why not </title>
      <link>https://community.intel.com/t5/Software-Archive/Problems-with-onDeviceReady-event/m-p/1059336#M53349</link>
      <description>&lt;P&gt;Why not use the below code?&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;$.afui.ready(function(){
console.log('afui is ready');
​});&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2015 01:23:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Problems-with-onDeviceReady-event/m-p/1059336#M53349</guid>
      <dc:creator>Vijay_R_1</dc:creator>
      <dc:date>2015-03-23T01:23:00Z</dc:date>
    </item>
    <item>
      <title>For what library is the</title>
      <link>https://community.intel.com/t5/Software-Archive/Problems-with-onDeviceReady-event/m-p/1059337#M53350</link>
      <description>&lt;P&gt;For what library is the refference "$" here for? What should I include?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2015 07:56:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Problems-with-onDeviceReady-event/m-p/1059337#M53350</guid>
      <dc:creator>Slavi_I_</dc:creator>
      <dc:date>2015-03-23T07:56:21Z</dc:date>
    </item>
  </channel>
</rss>

