Prevent the app activity from resuming by rotating the [duplicate] screen

0

In an app of

asked by pepito 03.07.2017 в 08:21
source

1 answer

2

To prevent the activity from restarting when changing the orientation, you must put the following line in the declaration of your Activity in the manifest: android:configChanges="orientation" remaining as follows:

<activity android:name=".MyActivity"
          android:configChanges="orientation|keyboardHidden|screenSize"
          android:label="@string/app_name">

For more information you can check the official Android documentation

    
answered by 03.07.2017 / 08:31
source