Home  >  Forum  >  Android
Post New Query

Android avoid activity restart on orientation change


joined on
December 18,2014
Asked on September 16,2015
How to avoid activity restart on orientation change in Android

joined on
November 18,2013
Replied on September 16,2015

Use attribute  android:configChanges in <activity> tag in AndroidManifest.xml with orientation and other options. Find the sample example.

<activity  android:name=".MainActivity" 
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize">
joined on
December 18,2014
Replied on September 16,2015

Thanks.

Write Answer



Sitewide-Feb4of4234x60





Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us