PhoneGap Application Crashing Issue When Rotating the Device

Application build with Phonegap experience app reload and crashing issue while rotating the device. The issue may arise when you switch between portrait and landscape mode.

This issue can be resolved by adding the following line to the AndroidManifest.xml file

android:configChanges="orientation|keyboardHidden"

For Android version 4.X, please use the below code rather than the above

android:configChanges="orientation|screenSize|keyboardHidden"

Add this line to all activity tags, not to the application tag

Now it looks











Sharing is caring!

Related Posts

Leave a Comment

shares