1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    2
    Vote Rating
    0
    shoeseat is on a distinguished road

      0  

    Default sencha getting started tutorial package(apk) stuck on load screen

    sencha getting started tutorial package(apk) stuck on load screen


    Hi guys,
    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.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,754
    Vote Rating
    828
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    2
    Vote Rating
    0
    shoeseat is on a distinguished road

      0  

    Default


    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.

  4. #4
    Sencha User
    Join Date
    Mar 2012
    Posts
    18
    Vote Rating
    1
    cchilds is on a distinguished road

      1  

    Default


    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.

  5. #5
    Sencha User
    Join Date
    Oct 2012
    Posts
    2
    Vote Rating
    0
    ytkang is on a distinguished road

      0  

    Default I got same problem. but I solved this.

    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.

  6. #6
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Berne, Switzerland
    Posts
    714
    Vote Rating
    42
    ingo.hefti has a spectacular aura about ingo.hefti has a spectacular aura about ingo.hefti has a spectacular aura about

      0  

    Default


    What version of the SDK and CMD are you using? Make sure it's the latest one (ST2.1rc2 and CMD3.0.0.230) because it might eliminate a lot of your problems...

  7. #7
    Sencha User
    Join Date
    Feb 2009
    Posts
    57
    Vote Rating
    0
    javaman is on a distinguished road

      0  

    Default


    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.

    []'s

  8. #8
    Sencha User
    Join Date
    Nov 2012
    Posts
    2
    Vote Rating
    0
    jg.forlogic is on a distinguished road

      0  

    Default


    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.

  9. #9
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Berne, Switzerland
    Posts
    714
    Vote Rating
    42
    ingo.hefti has a spectacular aura about ingo.hefti has a spectacular aura about ingo.hefti has a spectacular aura about

      0  

    Default


    Quote Originally Posted by jg.forlogic View Post
    Changing the logger attribute in the "app.json" file from "no" to "false" made the native application work.
    You are on V2.0.something then?

  10. #10
    Sencha User
    Join Date
    Nov 2012
    Posts
    2
    Vote Rating
    0
    jg.forlogic is on a distinguished road

      0  

    Default


    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.

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi