Results 1 to 6 of 6

Thread: Android ICS & Sencha

  1. #1

    Default Android ICS & Sencha

    I saw a similar thread, but do not have a clue on what is the root cause or how to fix. I have a hybrid application and Sencha code is located under assets/web. The code is working well for Gingerbread and below but does not for ICS.
    Here is what I observed in the log:

    java.lang.Throwable: EventHub.removeMessages(int what = 107) is not supported before the WebViewCore is set up.
    W/webcore ( 4250): at android.webkit.WebViewCore$EventHub.removeMessages(WebViewCore.java:1683)
    W/webcore ( 4250): at android.webkit.WebViewCore$EventHub.access$7900(WebViewCore.java:926)
    W/webcore ( 4250): at android.webkit.WebViewCore.removeMessages(WebViewCore.java:1795)
    W/webcore ( 4250): at android.webkit.WebView.sendOurVisibleRect(WebView.java:2917)
    W/webcore ( 4250): at android.webkit.ZoomManager.setZoomScale(ZoomManager.java:593)
    W/webcore ( 4250): at android.webkit.ZoomManager.access$1700(ZoomManager.java:49)
    W/webcore ( 4250): at android.webkit.ZoomManager$PostScale.run(ZoomManager.java:984)
    W/webcore ( 4250): at android.os.Handler.handleCallback(Handler.java:605)
    W/webcore ( 4250): at android.os.Handler.dispatchMessage(Handler.java:92)
    W/webcore ( 4250): at android.os.Looper.loop(Looper.java:137)
    W/webcore ( 4250): at android.app.ActivityThread.main(ActivityThread.java:4424)
    W/webcore ( 4250): at java.lang.reflect.Method.invokeNative(Native Method)
    W/webcore ( 4250): at java.lang.reflect.Method.invoke(Method.java:511)
    W/webcore ( 4250): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
    W/webcore ( 4250): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)

    Finally I saw couple lines like :
    D/chromium( 4250): Unknown chromium error: -6
    D/chromium( 4250): Unknown chromium error: -6

    Needless to say it is very important to have ICS supported, otherwise the only choice we have is to use native.

  2. #2

    Default More with latest Sencha 2.0.1.1

    I just saw the new version is available and tried immediately, I do not longer see an exception but nothing is displayed and last 2 lines still appear:
    D/chromium( 4861): Unknown chromium error: -6
    D/chromium( 4861): Unknown chromium error: -6

  3. #3

    Default

    Folks,

    I moved kitchen sink from 2.0.1.1 and put on Android devices no issues for OS < IOS, IOS has the same problem as my app reporting:
    Unknown chromium error: -6 , Any suggestions ?

  4. #4

    Default

    Sorry for confusion. All Android OSes looks fine except ICS not IOS

  5. #5
    Sencha User rkraus's Avatar
    Join Date
    Dec 2011
    Location
    Bonn / Germany
    Posts
    68

    Default

    Hey,

    Its a caching problem...

    Just try this:

    Code:
    //This fix this Bug http://code.google.com/p/android/issues/detail?id=17535
    Ext.Loader.setConfig({
        disableCaching: false
    });
    Ext.Ajax.setDisableCaching(false);
    
    
    // Define our application
    Ext.application({.......
    Greetings -Ralf Kraus-

  6. #6

    Default

    Thank you for you suggestion, but it does not work and bring exactly the same results. I tried on my laptop execute Sencha app from a local file system and made it work only after I added following lines:
    Ext.require('Ext.TitleBar');
    Ext.require('Ext.data.*');

    Ext.Loader.setConfig({
    enabled: true,
    disableCaching: true
    });
    //Ext.Ajax.setDisableCaching(true);

    I tried setting disableCache to false but after that the app stopped running locally, I never was not able to make it running when code is ICS resident.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •