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
Every time when screen is rotated, opened activity is finished and onCreate() is called again.
1 . You can do one thing save the state of activity when screen is rotated so that, You can recover all old stuff when activity's onCreate() is called again. Refer this link
2 . If you want to prevent restarting of the activity just place following lines in your manifest.xml file.