3 Jul 2012 11:30 AM #1
sencha getting started tutorial package(apk) stuck on load screen
I am new to sencha touch.I am just learning sencha and followed the doc for "building your first app(http://docs.sencha.com/touch/2-0/#!/guide/first_app)".Everything is fine and it works in my localhost server.Then i tried the apk building tutorial(http://docs.sencha.com/touch/2-0/#!/...native_android) so as to test what it's looks like to build .apk package and test in my mobile(xperia arc 4.0.4).With many hassels i managed to build the "debug" package without any error.Then i installed that apk in my mobile but it just stuck on first loading screen of the tutorial with blue background and white circles flicking.You can download the apk file here https://www.box.com/s/2f27ac18346baf676a19 if you want,unzip it.Can anyone know what went wrong in apk? The app is running fine in localhost server but is stuck when installing in mobile and run the app.
5 Jul 2012 4:47 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
This usually means that you have a JS error. Did you do a sencha app build testing before going straight to the native build?Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
10 Jul 2012 11:38 PM #3
Thankx for the reply.I checked on my localhost and there was no error.I tried a simple test package with only home page of getting started tutorial.It worked fine localhost but when in packaged and installed in my mobile,it just stuck on load screen as i mentioned above.Can you see my apk and tell what's wrong with it?Just want to build simple native app so that i can get to know sencha.
11 Jul 2012 11:27 AM #4
This generally happens to me when I have a JS error like Mitchell said. One thing you will want to try is to run a "sencha app build production" and point your localhost to THAT instead and see if there are any errors. Most likely, you are having the logger bug that everyone else is complaining about. Edit your app.json and under "buildOptions" change "logger": "no" to "logger": false or to "logger": "yes" and see if that helps at all.
25 Oct 2012 9:29 PM #5
I got same problem. but I solved this.
I noticed there are development.js and production.js files in sdk/microloader.
I started finding a clue at this point.
first, I change development.js to production.js on desktop. this result was same as android apk. stuck on load screen!
after doing this, I noticed there is a problem in production.js. and tried to change javacript file in /build/production/index.html to development.js
and re-generate apk. finally I got the good result not stuck on load screen.
25 Oct 2012 11:11 PM #6
What version of the SDK and CMD are you using? Make sure it's the latest one (ST2.1rc2 and CMD188.8.131.52) because it might eliminate a lot of your problems...
30 Oct 2012 8:20 PM #7
I've tested the apk.
It runs ok on Android 2.2 and 2.3 but not ok on Android 4.0.3
It looks like this bug that I've reported here: http://www.sencha.com/forum/showthre...-Android-4.0.3
In fact, there are no problem with your app. For me, it's a bug with the microloader.
Like I said in the bug report, if you edit the index.html file, adding the app.js and the app.css directly on the index.html, everything runs.
8 Nov 2012 11:21 AM #8
Finally I made it work on Android 4.0.3.
Changing the logger attribute in the "app.json" file from "no" to "false" made the native application work.
8 Nov 2012 1:31 PM #9
9 Nov 2012 5:51 AM #10
Yes. I'm using Sencha Touch 2.0 and by doing that change on the "app.json" file like I said, I could make my application run on Android 4.0.3.