Suspend orientation change
Posted
by
OkyDokyman
on Stack Overflow
See other posts from Stack Overflow
or by OkyDokyman
Published on 2011-01-16T00:22:32Z
Indexed on
2011/01/16
0:53 UTC
Read the original article
Hit count: 104
android
|orientation
Documentation says: "a configuration change (such as a change in screen orientation, language, input devices, etc) will cause your current activity to be destroyed, going through the normal activity lifecycle process of onPause(), onStop(), and onDestroy()."
I would like to suspend the orientation change, since it crashes my app if it was done in the middle of a a loop (of reading a file).
How can I do this? Also - looking for some kind of "onOrientationChnage" function :)
© Stack Overflow or respective owner