-1

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?

Martin Ongtangco
  • 22,657
  • 16
  • 58
  • 84

3 Answers3

1

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.

Nick Eman
  • 11
  • 1
1

Android 4.x orientation with phonegap

add this line your activity in the manifest

android:configChanges="orientation|screenSize|keyboardHidden" 
Community
  • 1
  • 1
Yaron U.
  • 7,681
  • 3
  • 31
  • 45
0

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!