Add android:configChanges="orientation to your Activity in AndroidManifest.xml.
Add android:configChanges="orientation" to your Activity in AndroidManifest.xml.
Save your non-view instance state in onSaveInstanceState or in onRetainNonConfigurationState and restore state in onCreate. Save "shared document-like data" in onPause() by writing to a database and restoring "shared document-like data" in onResume(). Also see the docs.
But when I rotates the phone to the vertical orientation the screen is rotated and is stretched. I can't understand why it's happened. Please help me to solve this problem.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.