How To Stop An Activity From Reloading On Orientation Changes
I have an activity as a child within a navigation drawer parent activity, any time the orientation of the pages changes the page has to be reloaded again. public class Applications
Solution 1:
You need to declare android:configChanges="orientation|screenSize"
in activity
tag not in application
tag
<activity
android:name=".ApplicationsClass"
android:configChanges="orientation|screenSize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Post a Comment for "How To Stop An Activity From Reloading On Orientation Changes"