How can I stop a background thread on keyboard flip开发者_JAVA百科 in android?
When the keyboard flip occurs, the current activity is killed and restarted in the new orientation. So I would imagine you would want to stop the thread on the onPause()
or onDestroy()
method.
The following StackOverflow question might be relevant: Activity restart on rotation Android
精彩评论