Just create a new app: sencha generate app demo demo. After that, configure the packager.json to an Android device with 4.0.3 version and compile with native. The same app runs on Android 2.3 and iOS, with the same steps.

The result that was expected:

App starts and events fired

HELPFUL INFORMATION

Possible fix:

If I edit the index.html file and add the app.js file, deleting the code of the microloader, the events are fired

30 Oct 2012, 1:46 AM

mitchellsimoens

Have you checked out what errors are being thrown?

30 Oct 2012, 3:29 AM

javaman

Quote:

Originally Posted by mitchellsimoens

Have you checked out what errors are being thrown?

There are no erros.

I really think that app.js is not being loaded, something with the microloader code in index.html

If I edit the index.html file and add the app.js file, everything seens to work fine, something like:

Code:

<script type="text/javascript" src="app.js"></script>

And like I said, the same app runs on iOS and Android 2.2 and 2.3.
It's seens to be something with Android 4.X

Actually I have met the same problem with ST2.1 with white screen.
so I have used you solution that removed <scriptid="microloader" type="text/javascript"src="touch/microloader/development.js"></script> from the index.html. and add the line

PHP Code:

<script type="text/javascript" src="app.js"></script>

.

but when I am tried to used the sencha CMD to package native code. I got the error snapshot as following. is anybody have solution? thanks a lotAttachment 40768