Results 1 to 3 of 3

Thread: [SOLVED] Application crashed when orientation change

  1. #1
    Sencha User
    Join Date
    May 2010
    Location
    Jakarta - Indonesia
    Posts
    169
    Vote Rating
    0
      0  

    Thumbs up [SOLVED] Application crashed when orientation change

    Hi all..
    I've just built an application using sencha touch & phone gap. It runs well on my galaxy tab but when I rotate it to portrait or landscape, it is going crashed (no error or notification), it's just closed.
    I don't know how could this happen.
    Could someone help me?

    Note :
    I'm using
    - Galaxy tab
    - Sencha-touch 1.1
    - Phone gap 1.2

    Thanks in advance
    Last edited by yagi; 4 Jan 2012 at 9:55 PM. Reason: It's been solved
    Berusaha dan Berdoa

  2. #2
    Sencha Premium Member
    Join Date
    Jan 2012
    Posts
    39
    Vote Rating
    0
      0  

    Default

    Should have nothing to do with sencha.
    My app crashed too before i did the following changes.
    First you should use phonegap 1.3 and then you have to edit your AndroidManifest.xml file.
    Down in the application tag you should have 2 activity tags.
    These 2 activity tags both need following attribute:
    Code:
    android:configChanged="orientation|keyboardHidden"
    This should help

  3. #3
    Sencha User
    Join Date
    May 2010
    Location
    Jakarta - Indonesia
    Posts
    169
    Vote Rating
    0
      0  

    Thumbs up

    Quote Originally Posted by gilles86 View Post
    Should have nothing to do with sencha.
    My app crashed too before i did the following changes.
    First you should use phonegap 1.3 and then you have to edit your AndroidManifest.xml file.
    Down in the application tag you should have 2 activity tags.
    These 2 activity tags both need following attribute:
    Code:
    android:configChanged="orientation|keyboardHidden"
    This should help
    Thanks Gilles, it works now. I tried to upgrade my phonegap to 1.3 and added additional code to manifest file

    Thanks
    Berusaha dan Berdoa

Posting Permissions

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