1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    2
    Vote Rating
    1
    ZviSoft is on a distinguished road

      1  

    Default Sencha sample app generated for Android native fails to start

    Sencha sample app generated for Android native fails to start


    Hi All,

    Trying to compile navigationview example tha tcomes with sencha touch 2...

    Using sencha-touch-2.0.1.1, plus patches posted here fixing android API level issues. After some tinkering with classpath, and JAVA_HOME env. variables got the build working. However, 2 issues.

    packager.json looks like this:
    Code:
    {    "applicationName":"NView",
        "applicationId":"com.sample.nview",
        "versionString":"1.0",
        "versionCode":"1",
        "iconName":"resources/icons/icon.png",
        "inputPath":"C:\\Dev\\Sencha2\\sencha-touch-2.0.1.1\\examples\\navigationview\\build\\package",
        "outputPath":"C:\\Dev\\Sencha2\\sencha-touch-2.0.1.1\\examples\\navigationview\\build\\native",
        "configuration":"Release",
        "platform":"Android",
        "deviceType":"Universal",
        "certificatePath":"../../../zst.jks",
        "certificateAlias":"zst",
        "certificatePassword":"asd123456",
        "sdkPath":"c:/dev/androidsdk",
        "androidAPILevel":"4",
        "orientations": [
            "portrait",
            "landscapeLeft",
            "landscapeRight",
            "portraitUpsideDown"
        ]
    }
    1) sencha app build native - command hangs unless I have an android device connected via usb. Apk is stil produced though. I did wait for up to 20 minutes, but no activity in the task manager, and 20 mins should be more than enough to build sample app. However, with the device connected it goes through in less than a minute.

    2) apk is generated and attempted to be executed. I get white screen and the following error on console:
    Code:
    ""c:/dev/androidsdk\tools\android" create project --target android-4 --name NView --activity STActivity --path "C:\Dev\Sencha2\sencha-touch-2.0.1.1\deploy\native\navigationview\/" --package com.sample.nview"""c:/dev/androidsdk\platform-tools\adb" install -r "C:\Dev\Sencha2\sencha-touch-2.0.1.1\deploy\native\navigationview\NView.apk""
    ""c:/dev/androidsdk\platform-tools\adb" shell am start -n com.sample.nview/.STActivity"
    [ERROR] 2527 KB/s (647072 bytes in 0.250s)
    Digging the logcat from the device shows this error:
    Code:
    E/chromium( 5243): external/chromium/net/disk_cache/stat_hub.cc:190: [0731/211201:ERROR:stat_hub.cc(190)] StatHub::Init - App com.sample.nview isn't supported.
    E/chromium( 5243): external/chromium/net/disk_cache/stat_hub.cc:190: [0731/211201:ERROR:stat_hub.cc(190)] StatHub::Init - App com.sample.nview isn't supported.
    BTW, initially packager.json had input and output path variables set to build/native but "sencha app build native" overwrote those two in the packager.json. Is that supposed to happen? I can see packager.json.temp during the build, and it gets left over if I have to break the hung build process with ctrl+c.

    I've also tried "tabs" example, same results.

    I've tried 2 different android devices with Android versions 2.3 and 4.0, no success.

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


    In app.json, did you change logger to be false (bool)?
    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
    Jul 2012
    Posts
    2
    Vote Rating
    1
    ZviSoft is on a distinguished road

      0  

    Default


    "buildOptions" section? yes, it is set to bool, false.
    "logger": false

  4. #4
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    20
    Vote Rating
    0
    SergioPrado is on a distinguished road

      0  

    Default


    I've encountered the same problem, and logger is set to false for me as well. I've Googled extensively, have not found a solution. The one difference for me is I've been packaging the app with PhoneGap

    Can anyone help here?

  5. #5
    Sencha User StevenInc's Avatar
    Join Date
    Jul 2009
    Location
    NYC
    Posts
    72
    Vote Rating
    0
    StevenInc is on a distinguished road

      0  

    Default


    I have this same problem too in phoneGap
    Steven Benjamin
    Senior Coldfusion Developer


    www.stevenbenjamin.com