Hybrid View

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

      0  

    Default Unanswered: Native android app stucks at loading indicator

    Unanswered: Native android app stucks at loading indicator


    Hi,
    my native android app wont start. It runs very smoothly when I access the app directly via android browser, no matter if i try the testing or production build.

    The packaged native android app stucks at the loading indicator. Via weinre, I got the following error messages:

    weinre server console:
    Code:
    WARN:weinre:client 1207881243: weinre: invocation exception on Object.loadEventFired(): TypeError: 'undefined' is not an object
    and sometimes: (maybe got these errors because I was playing around with the code)
    Code:
    2013-01-08 16:49:15.225:WARN:weinre:client 1207881243: weinre: invocation exception on Object.loadEventFired(): TypeError: 'undefined' is not an object2013-01-08 16:49:15.727:WARN:weinre:target 1207881254: weinre: invocation exception on WiCSSImpl.getStylesForNode(): Error: SYNTAX_ERR: DOM Exception 12
    2013-01-08 16:49:17.736:WARN:weinre:client 1207881243: weinre: invocation exception on Object.childNodeInserted(): TypeError: 'undefined' is not an object
    2013-01-08 16:49:17.736:WARN:weinre:client 1207881243: weinre: invocation exception on Object.childNodeInserted(): TypeError: 'undefined' is not an object
    2013-01-08 16:49:17.736:WARN:weinre:client 1207881243: weinre: invocation exception on Object.childNodeInserted(): TypeError: 'undefined' is not an object
    2013-01-08 16:49:17.736:WARN:weinre:client 1207881243: weinre: invocation exception on Object.childNodeInserted(): TypeError: 'undefined' is not an object
    2013-01-08 16:49:17.737:WARN:weinre:client 1207881243: weinre: invocation exception on Object.childNodeRemoved(): TypeError: 'undefined' is not an object
    2013-01-08 16:49:17.737:WARN:weinre:client 1207881243: weinre: invocation exception on Object.childNodeInserted(): TypeError: 'undefined' is not an object
    2013-01-08 16:49:17.737:WARN:weinre:client 1207881243: weinre: invocation exception on Object.childNodeRemoved(): TypeError: 'undefined' is not an object
    2013-01-08 16:49:17.737:WARN:weinre:client 1207881243: weinre: invocation exception on Object.childNodeInserted(): TypeError: 'undefined' is not an object
    2013-01-08 16:49:17.737:WARN:weinre:client 1207881243: weinre: invocation exception on Object.childNodeRemoved(): TypeError: 'undefined' is not an object
    2013-01-08 16:49:17.737:WARN:weinre:client 1207881243: weinre: invocation exception on Object.childNodeInserted(): TypeError: 'undefined' is not an object
    2013-01-08 16:49:17.737:WARN:weinre:client 1207881243: weinre: invocation exception on Object.childNodeRemoved(): TypeError: 'undefined' is not an object
    2013-01-08 16:49:17.737:WARN:weinre:client 1207881243: weinre: invocation exception on Object.childNodeInserted(): TypeError: 'undefined' is not an object

    weinre javascript console says:
    Code:
    error occurred: file:///android_asset/touch/sencha-touch-all.js:68467: Uncaught TypeError: Cannot read property 'callback' of undefined
    This error repeats every few seconds!


    I am using following sencha tools on my osx mountain lion system:
    Sencha Cmd v3.0.0.250
    Sencha Touch 2.1

    My phone:
    Android 4.1.1 on my HTC One X.


    My config.json for building the app:

    Code:
    {
      "applicationName":"app",
      "applicationId":"com.br.app",
      "bundleSeedId":"SYU97DXVF5",
      "versionString":"1.0",
      "versionCode":"1",
      "icon": {
        "57":"resources/icons/Icon.png",
        "72":"resources/icons/Icon~ipad.png",
        "114":"resources/icons/Icon@2x.png",
        "144":"resources/icons/Icon~ipad@2x.png"
      },
      "inputPath":"./",
      "outputPath":"/Users/bene/app/build",
      "configuration":"Debug",
      "platform":"Android",
      "deviceType":"iPhone",
      "certificatePath":"/Users/bene/Work/android/my-release-key.keystore",
      "certificateAlias":"xxx",
      "certificatePassword":"xxx",
      "permissions": [
        "INTERNET",
        "ACCESS_NETWORK_STATE"
      ],
      "sdkPath":"/Users/bene/Work/android/sdk",
      "androidAPILevel":"8",
      "orientations": [
        "portrait"
      ]
    }

    Any help would be greatly appreciated!!

    Greetings

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,330
    Answers
    3541
    Vote Rating
    847
    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


    Are these errors in your app code?
    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.