Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha User
    Join Date
    Feb 2009
    Posts
    57
    Vote Rating
    0
    javaman is on a distinguished road

      0  

    Default 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
    Android versions tested against:
    • 4.0.3 on Samsung S2 GT-I9100
    Description:
    • 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
    Steps to reproduce the problem:
    • 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

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,824
    Vote Rating
    836
    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


    Have you checked out what errors are being thrown?
    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
    Feb 2009
    Posts
    57
    Vote Rating
    0
    javaman is on a distinguished road

      0  

    Default


    Quote Originally Posted by mitchellsimoens View Post
    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

    []s

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

      0  

    Default


    Someone reported and seems to be the same bug: http://www.sencha.com/forum/showthre...on-load-screen

    []'s

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

      0  

    Default


    The bug already exists on 2.1 final version

    And I've already updated Sencha CMD to the last version (GA).

    []'s
    Last edited by javaman; 6 Nov 2012 at 2:40 PM. Reason: aditional information

  6. #6
    Sencha User
    Join Date
    May 2012
    Posts
    18
    Vote Rating
    0
    koala2012 is on a distinguished road

      0  

    Default


    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

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

      0  

    Default


    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

  8. #8
    Sencha User
    Join Date
    May 2012
    Posts
    18
    Vote Rating
    0
    koala2012 is on a distinguished road

      0  

    Default


    Quote Originally Posted by javaman View Post
    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
    I am trying as above solution,but I am failed to start the application
    add the
    PHP Code:
    Ext.Loader.setConfig({            enabledtrue,            disableCachingfalse        }); 
    on the first line of app.js

    add
    PHP Code:
    Ext.Ajax.setDisableCaching(false); 
    in the Ext.application launch function

    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?