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
It is very simple just do the following steps:
This works for me :
Note: orientation depends on your requitement