-
29 Oct 2012 2:52 PM #1
No launch and onReady event on Android 4.0.3
No launch and onReady event on Android 4.0.3
REQUIRED INFORMATION
Sencha Touch version tested:- Sencha Touch 2.1 RC2
- 4.0.3 on Samsung S2 GT-I9100
- The app doesn't run. 'onReady' or 'launch' events don't fire. The app stills on blue screen with loading indicators forever. Tested with the new Sencha CMD 3.0.0.230
- 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.
- 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 #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,674
- Vote Rating
- 435
Have you checked out what errors are being thrown?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
30 Oct 2012 3:29 AM #3
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
[]s
-
31 Oct 2012 9:24 PM #4
Someone reported and seems to be the same bug: http://www.sencha.com/forum/showthre...on-load-screen
[]'s
-
6 Nov 2012 2:22 PM #5
The bug already exists on 2.1 final version
And I've already updated Sencha CMD to the last version (GA).
[]'sLast edited by javaman; 6 Nov 2012 at 2:40 PM. Reason: aditional information
-
12 Dec 2012 7:22 AM #6
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 lot
error.png
-
12 Dec 2012 8:26 PM #7
Your error don't look like mine.
It probably another thing.
I solved my problem looking this thread: http://www.sencha.com/forum/showthre...l=1#post754810
[]'s
-
12 Dec 2012 9:32 PM #8
I am trying as above solution,but I am failed to start the application
add theon the first line of app.jsPHP Code:Ext.Loader.setConfig({ enabled: true, disableCaching: false });
addin the Ext.application launch functionPHP Code:Ext.Ajax.setDisableCaching(false);
then I used Sencha touch CMD tool to make native code again. but once open APP on real device. it struck on start screen.
I am confused that 4.0.3 simulator can run my APP smoothly, why?????
is there any Sencha touch team guys know what's problem I have?
Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.


Reply With Quote