Well, it depends on many factors. If you encounter this problem on Android 3.2+ devices, you should add the screenSize property in android: configChanges
android:configChanges="keyboardHidden|orientation|screenSize"
Also, add android: launchMode = "singleTop" to your launch activity. Please note that you need to use the Android SDK 15 or higher as the target, however your application will also work on older devices. Hope this helps.
Pulkit gupta
source share