PDA

View Full Version : [SOLVED] Application crashed when orientation change



yagi
4 Jan 2012, 1:47 AM
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

gilles86
4 Jan 2012, 2:24 AM
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:


android:configChanged="orientation|keyboardHidden"


This should help :)

yagi
4 Jan 2012, 9:52 PM
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:


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