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
    Gainesville, FL
    Posts
    37,524
    Vote Rating
    873
    Answers
    3563
    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


    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
    ________________
    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
    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?

Thread Participants: 1