1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    7
    Vote Rating
    0
    Answers
    1
    samlowry is on a distinguished road

      0  

    Default Answered: App packaged with PhoneGap : Orientation change crashes

    Answered: App packaged with PhoneGap : Orientation change crashes


    I am developing a mvc app on android. I am using android 2.1, phonegap to package, and senchatouch pr2-.

    The things are packaged and seem to work but i have a great problem.
    Unfortunately i am experiencing an app crash when i change orientation of the mobile.

    Has somebody experienced the same problem?
    Has somebody some good hints to help me?

    Is it a well known problem ?


    The same code has no problem when accessed via web.

  2. The problem was in packaging and it was due to an error of mine in the AndroidManifest.xml not evidenced from eclipse.

    Senchatouch 2.0 was absolutely innocent.!

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


    Quote Originally Posted by samlowry View Post
    Is it a well known problem ?
    We are still in PR stages so ST2 hasn't been out that long. Plus being in PR stages still, expect some bumps in the road.
    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.

  4. #3
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    Answers
    93
    rdougan will become famous soon enough

      0  

    Default


    Can you provide a simple test case so we can debug this (only the app, I can package the app myself)? I have never seen this happen before.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  5. #4
    Sencha User
    Join Date
    Nov 2011
    Posts
    7
    Vote Rating
    0
    Answers
    1
    samlowry is on a distinguished road

      0  

    Default


    The problem was in packaging and it was due to an error of mine in the AndroidManifest.xml not evidenced from eclipse.

    Senchatouch 2.0 was absolutely innocent.!

  6. #5
    Sencha User guillaumebadin's Avatar
    Join Date
    Jul 2011
    Location
    Paris
    Posts
    16
    Vote Rating
    1
    guillaumebadin is on a distinguished road

      0  

    Default Problem with AndroidManifest.xml

    Problem with AndroidManifest.xml


    Hello, I have the same problem in my Android Application.

    Could you post your error of AndroidManifest.xml?

  7. #6
    Sencha Premium Member
    Join Date
    Aug 2008
    Posts
    209
    Vote Rating
    4
    Answers
    4
    squarefan is on a distinguished road

      0  

    Default


    Just stumbled over this and for future reference:

    in the AndroidManifest.xml under activity change:

    Code:
    android:configChanges="orientation|keyboardHidden"
    to

    Code:
    android:configChanges="orientation|screenSize|keyboardHidden"
    The API changed after SDK 11 I think and PhoneGap didn't update their Tutorial yet.