How do I stop Android from restarting activity when changing orientations?
Answer
How to Avoid restarting activity when orientation changes on android. Add android_configChanges=”keyboardHidden|orientation|screenSize” into your AndroidManifest. xml file inside activity tag just like have done below. Code for AndroidManifest.
Answer
How to Avoid restarting activity when orientation changes on android. Add android_configChanges=”keyboardHidden|orientation|screenSize” into your AndroidManifest. xml file inside activity tag just like have done below. Code for AndroidManifest.