views:

244

answers:

1

How can I stop a background thread on keyboard flip in android?

A: 

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: http://stackoverflow.com/questions/456211/activity-restart-on-rotation-android

I82Much