How do I stop Android from restarting activity when changing orientations?

thanhthao

New member
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.
 

Tìm kiếm

Back
Top