(Android) Prevent config change on orientation change


Add to activity in manifest:

android:configChanges="keyboardHidden|orientation|screenSize"
XML

Leave a Reply