Results 1 to 6 of 6

Thread: Steps to running sencha touch 2 app on android emulator.

  1. #1
    Sencha User
    Join Date
    Feb 2009
    Location
    Tamilnad,India
    Posts
    23
    Vote Rating
    1
      0  

    Default Unanswered: Steps to running sencha touch 2 app on android emulator.

    Hi all,

    I would like to know what is the step by step process for running sencha touch 2 app on android emulator.

    you can find my source code in this link and what is my state currently http://www.sencha.com/forum/showthre...tor-on-windows

    really it is driving me mad...

    pls guide me

  2. #2
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Hillsborough, NC
    Posts
    435
    Answers
    3
    Vote Rating
    135
      0  

    Default

    How about a little more info, please?
    1. Does your app run in browser?
    2. Did you create the app initially with "sencha app create"?
    3. Do you have the emulator running?
    4. have you edited packager.json in your project directory?
    5. set "platform":"Android" in packager.json. DO NOT USE "platform":"AndroidEmulator"!
    Go to your project directory and run:
    Code:
    sencha app build native
    Worth

  3. #3
    Sencha User
    Join Date
    Feb 2009
    Location
    Tamilnad,India
    Posts
    23
    Vote Rating
    1
      0  

    Default

    Hi, thanks for the reply.

    I have installed the http://dl.dropbox.com/u/8793605/stbuild.msi

    Yes i have created the app using sencha app create command in the command line only.
    I have changed the packager.json file as per your instruction.( Android emulator - Android)

    currently i am having the below error

    Code:
     
    C:\path\to\www\mysenchaapp>sencha app build native
    [INFO] Deploying your application to C:\path\to\www\mysenchaapp\build\package
    [INFO] Copied sdk/sencha-touch.js
    [INFO] Copied app.js
    [INFO] Copied resources/css/app.css
    [INFO] Copied resources/images
    [INFO] Copied resources/icons
    [INFO] Copied resources/loading
    [INFO] Resolving your application dependencies...
    [INFO] Found 139 dependencies. Concatenating all into app.js...
    [INFO] Processed sdk/sencha-touch.js
    [INFO] Minifying sdk/sencha-touch.js
    [INFO] Processed app.js
    [INFO] Minifying app.js
    [INFO] Minifying resources/css/app.css
    [INFO] Minified sdk/sencha-touch.js
    [INFO] Minified app.js
    [INFO] Minified resources/css/app.css
    [INFO] Generated app.json
    [INFO] Embedded microloader into index.html
    [INFO] Packaging your application as a native app...
    [INFO] Required field (versionCode) is missing from config fileFailed to package
     application
    Please let me know what is the issue here

  4. #4
    Sencha User
    Join Date
    May 2012
    Posts
    7
    Vote Rating
    4
      0  

    Default application.json

    Can you please post your application.json file?

  5. #5
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Hillsborough, NC
    Posts
    435
    Answers
    3
    Vote Rating
    135
      0  

  6. #6
    Sencha User
    Join Date
    Dec 2011
    Location
    Coimbatore
    Posts
    103
    Answers
    4
    Vote Rating
    -1
      0  

    Default

    Hi,

    {
    "applicationName":"appName", "applicationId":"appID",
    "bundleSeedId":"appName",
    "versionString":"1.0",
    "versionCode":"1", //Add version code config and check " :"
    "iconName":"resources/icons/icon.png",
    "inputPath":"D:/senchadev/",
    "outputPath":"build/",
    "configuration":"Debug",
    "platform":"AndroidEmulator",
    "deviceType":"Universal",
    "certificatePath":"Your KeyStore",
    "certificateAlias":"Your alias",
    "sdkPath":"C:/Program Files/Android/android-sdk",
    "androidAPILevel":"15",
    "orientations": [
    "portrait",
    "landscapeLeft",
    "landscapeRight",
    "portraitUpsideDown"
    ]
    }

    Now it should work


    Thnks

Tags for this Thread

Posting Permissions

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