开发者

How to stop a background thread on keyboard flip in android

开发者 https://www.devze.com 2022-12-09 02:55 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号