Android application restarts on orientation change


I have bundled my ionic app with phonegap and installed on my android device. App works like butter on my Samsung S3 mini, but App restarts whenever I change the orientation. Any idea how to fix this.



Hmm, odd, doesn’t seem to be an issue with ionic/ angular. Are you able to open an IDE and see there are any memory warnings? What version of cordova are you using? Ionic and Android?


I am using cordova 2.9.0 and latest ADT. I also have one jquerymobile app bundled with phonegap, but that is working fine. I also have below configuration in my AndroidMenifest.xml



Try upgrading to the latest version of cordova 3.5


I removed and recreated android project and this time I select app theme as none and magically it worked.