I have been going gaga to figure this out. Although I have read a lot that on Orientation Change, Android kills an activity and starts it as a fresh one, and the only w
android:screenOrientation="portrait" in the activity tag in the manifest will lock your orientation.
android:screenOrientation="portrait"
Check this link for more inforation.