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

      0  

    Default Unanswered: Sencha touch-2 + phonegap App works on Android 2.3.4, but not on ICS

    Unanswered: Sencha touch-2 + phonegap App works on Android 2.3.4, but not on ICS


    Here is my Logcat error code:
    06-19 18:36:04.245: D/dalvikvm(841): GC_FOR_ALLOC freed 41K, 3% free 10562K/10823K, paused 56ms
    06-19 18:36:12.245: D/chromium(841): Unknown chromium error: -6
    06-19 18:36:12.245: D/chromium(841): Unknown chromium error: -6
    06-19 18:36:12.245: D/chromium(841): Unknown chromium error: -6
    06-19 18:36:12.306: D/PhoneGapLog(841): Uncaught Error: [Ext.Loader] Failed loading 'sdk/src/event/Dispatcher.js', please verify that the file exists
    06-19 18:36:12.306: D/PhoneGapLog(841): file:///android_asset/www/sdk/sencha-touch-debug.js: Line 8017 : Uncaught Error: [Ext.Loader] Failed loading 'sdk/src/event/Dispatcher.js', please verify that the file exists
    06-19 18:36:12.306: E/Web Console(841): Uncaught Error: [Ext.Loader] Failed loading 'sdk/src/event/Dispatcher.js', please verify that the file exists at file:///android_asset/www/sdk/sencha-touch-debug.js:8017
    06-19 18:36:12.316: D/PhoneGapLog(841): Uncaught Error: [Ext.Loader] Failed loading 'sdk/src/MessageBox.js', please verify that the file exists
    06-19 18:36:12.316: D/PhoneGapLog(841): file:///android_asset/www/sdk/sencha-touch-debug.js: Line 8017 : Uncaught Error: [Ext.Loader] Failed loading 'sdk/src/MessageBox.js', please verify that the file exists
    06-19 18:36:12.316: E/Web Console(841): Uncaught Error: [Ext.Loader] Failed loading 'sdk/src/MessageBox.js', please verify that the file exists at file:///android_asset/www/sdk/sencha-touch-debug.js:8017
    06-19 18:36:12.326: D/PhoneGapLog(841): Uncaught Error: [Ext.Loader] Failed loading 'sdk/src/event/publisher/Dom.js', please verify that the file exists
    06-19 18:36:12.326: D/PhoneGapLog(841): file:///android_asset/www/sdk/sencha-touch-debug.js: Line 8017 : Uncaught Error: [Ext.Loader] Failed loading 'sdk/src/event/publisher/Dom.js', please verify that the file exists
    06-19 18:36:12.326: E/Web Console(841): Uncaught Error: [Ext.Loader] Failed loading 'sdk/src/event/publisher/Dom.js', please verify that the file exists at file:///android_asset/www/sdk/sencha-touch-debug.js:8017


  2. #2
    Sencha User
    Join Date
    Mar 2012
    Posts
    4
    Vote Rating
    0
    thechaithanya is on a distinguished road

      0  

    Default Edit:

    Edit:


    All the files are present at the prescribed location.
    As I mentioned, it worked perfectly on GingerBread

  3. #3
    Sencha Premium Member
    Join Date
    Nov 2011
    Posts
    23
    Vote Rating
    5
    bill@perdasys.com is on a distinguished road

      0  

    Default


    I also have the same issue. Works great in Emulator and also BlueStacks, but not a phone or tablet with ICS. Same type of error. Cannot locate files under APP folder. Did confirm Build.

    FOUND THE SOLUTION !!!
    Add this just after your "app.js" <script> line in your HTML document

    <script>
    // Fix for problem with android 3.x and 4.x which is
    // the browser has a problem with urls with ? and this
    // bug has not been fixed by google. See:
    // http://code.google.com/p/android/issues/detail?id=17535 or
    // http://www.sencha.com/forum/showthre...encha-Touch-2- PhoneGap-are-not-working-on-Android-4/page3&highlight=Loader
    //

    Ext.Loader.setConfig({ disableCaching: false });
    Ext.Ajax.setDisableCaching(false);
    </script>
    Last edited by bill@perdasys.com; 19 Jun 2012 at 4:16 PM. Reason: Found a solution

  4. #4
    Sencha User
    Join Date
    Mar 2012
    Posts
    4
    Vote Rating
    0
    thechaithanya is on a distinguished road

      0  

    Default


    My app is not running in simulator also. I also tried this script. It resulted in new error:
    06-19 18:42:01.545: E/Web Console(1265): Uncaught TypeError: Cannot call method 'setDisableCaching' of undefined at file:///android_asset/www/index.html:15

  5. #5
    Sencha User
    Join Date
    Apr 2012
    Posts
    11
    Vote Rating
    0
    bbrookfield is on a distinguished road

      0  

    Default


    Are you adding the code in app.html after the line in BOLD below...

    <script type="text/javascript" src="app.js"></script>
    // code to be added below
    <script>
    Ext.Loader.setConfig({ disableCaching: false });
    Ext.Ajax.setDisableCaching(false);
    </script>

  6. #6
    Sencha User
    Join Date
    Jun 2012
    Posts
    3
    Vote Rating
    1
    mobiren is on a distinguished road

      0  

    Default


    Thanks,

    Eclipse, Samsung Tab, cordova 1.8.1, Android 3.1, ST 2.0.1.1
    Managed to get rid of the white screen of death with thoses lines....

    <script type="text/javascript" src="app.js"></script>
    // code to be added below
    <script>
    Ext.Loader.setConfig({ disableCaching: false });
    Ext.Ajax.setDisableCaching(false);
    </script>



  7. #7
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,731
    Answers
    3362
    Vote Rating
    754
    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


    Ext.Loader should not be used in production so you need to remove that from production build. If you are using Sencha Command then you can do this automatically with the //<debug>

    http://mitchellsimoens.com/2012/06/s...encha-command/
    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.

  8. #8
    Sencha User
    Join Date
    Mar 2012
    Posts
    4
    Vote Rating
    0
    thechaithanya is on a distinguished road

      0  

    Default


    yes
    Quote Originally Posted by bbrookfield View Post
    Are you adding the code in app.html after the line in BOLD below...

    <script type="text/javascript" src="app.js"></script>
    // code to be added below
    <script>
    Ext.Loader.setConfig({ disableCaching: false });
    Ext.Ajax.setDisableCaching(false);
    </script>

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar