I'm testing via USB debugging on my Galaxy Tab 8.9 and whenver I rotate the device the application closes itself.
How can i fix this?
I'm testing via USB debugging on my Galaxy Tab 8.9 and whenver I rotate the device the application closes itself.
How can i fix this?
For me I found out, that the android:configChanges-Entry must be the first in the list. I had it in the third after "name" and "label" and it didn't work.
Android 4.x orientation with phonegap
add this line your activity in the manifest
android:configChanges="orientation|screenSize|keyboardHidden"
I was having the same problem but Yaron Uliel's comment helped me out.
Just make sure that on yout "AndroidManifest.xml", the 'activity' node has the attribute: android:configChanges="orientation|keyboardHidden"
Like this:
<activity
android:configChanges="orientation|keyboardHidden"
android:name=".FirstAppActivity"
android:label="@string/app_name" >
In my particlar case, I was missing "android:" part before "configChanges=" (it's an error on Adobe's tutorial I believe)
Hope it helps!