Search code examples
androidcordovasencha-touchextjs

Application crashed when orientation change


Actually my problem is the same as the question posted in : the same problem

But there is no answer yet..

Here is the problem I got :
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 crash.
I have added :

android:configChanges="orientation|keyboardHidden"

on my manifest file but it is still going crash when I rotate it.

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


Solution

  • You should have

    android:configChanges="keyboardHidden|orientation|screenLayout"
    

    instead of

    android:configChanges="orientation|keyboardHidden"
    

    to your activity in the manifest