In my Android application, when I rotate the device (slide out the keyboard) then my Activity is restarted (onCreate is called). Now, this is proba
Activity
onCreate
Put this below code in your Activity in Android Manifest.
Android Manifest
android:configChanges="orientation"
This will not restart your activity when you would change orientation.