Activity restart on rotation Android

Posted by Editorial Staff | Updated on

If you want the activity do not restart during screen orientation change, you can use below AndroidManifest. xml. Please note the activity android:configChanges=”orientation|screenSize” attribute. This attribute make the activity not restart when change screen orientation.

The easiest way to do this would be to pass the session id to the signout activity in the Intent you’re using to start the activity:

Access that intent on next activity:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers