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!

Leave a Comment

DON’T MISS OUR GIVEAWAYS!
Subscribe To Newsletter
Subscribe to our newsletter and get all the latest updates offers and giveaways right in your inbox.
Subscribe
Give it a try, you can unsubscribe anytime.
close-link

Join Free Giveaway!

Subscribe to our newsletter to get latest offers and giveaways!
SUBSCRIBE
close-link