1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    10
    Vote Rating
    0
    kktn is on a distinguished road

      0  

    Default Unanswered: sencha+ phonegap+ android jsonp not loaded

    Unanswered: sencha+ phonegap+ android jsonp not loaded


    Hi,

    my sencha touch web app work fine in chrome,
    app also work on android emulator
    also i copied same folder in mobile and open index.html it's also work, jsonp data loaded
    but when i make apk using phonegap my application load but not call jsonp data --why?
    i use Android sdk 2.3.3 and phonegap1.2.0

    hope you can help me

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,640
    Vote Rating
    434
    Answers
    3106
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    You need to use a remote debugger like weinre to see if there are errors or anything.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    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 almost in print!

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

  3. #3
    Sencha User
    Join Date
    Jan 2012
    Posts
    10
    Vote Rating
    0
    kktn is on a distinguished road

      0  

    Default


    thanks @mitchellsimoens

    now my app work for android 2.2 and 2.3 but same apk not working on android 4.0.3

    1)my code is like
    values=JSON.parse(localStorage.getItem('localStorageName')); if(values==null)
    values= new Array();
    here my app pause
    --for above code webApp work for android 4.0.3 and not android 2.2 and 2.3 (no apk direct from web)

    2)i change code
    val=localStorage.getItem('localStorageName'); values= new Array();
    if(val!=null)
    values=JSON.parse(val);
    now it's work for android 2.2,2.3,4.0.3(no apk direct from web) -- why not for above?
    now i make apk which work for android 2.2 and 2.3 but not for android 4.0.3--why this?