Hybrid View

  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
    37,408
    Vote Rating
    851
    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...