How to properly handle screen orientation change in android? Whenever i change the orientation of my phone or whenever I rotate my phone, my activity crashes and will force close.
Asked
Active
Viewed 215 times
1
-
Could you be more specific? Post your errors and source code here. – May 13 '11 at 07:38
1 Answers
0
Activity restarts when the orientation changes.
If you want to avoid orientation changes , then disable it using
android:screenOrientation="portrait" (or landscape) in the manifest.
check here,
http://developer.android.com/guide/topics/resources/runtime-changes.html
Handling configuration changes yourself.

sat
- 40,138
- 28
- 93
- 102