开发者

Delay the onPause() method

开发者 https://www.devze.com 2023-03-17 04:56 出处:网络
开发者_开发百科I am developing an Android application, and I was wondering if it is possible to delay the onPause() method until it receives a string from another Activity. This would be a bad idea. I
开发者_开发百科

I am developing an Android application, and I was wondering if it is possible to delay the onPause() method until it receives a string from another Activity.


This would be a bad idea. If onPause() is delayed, then you're activity is likely to trigger an "application not responding" (ANR) error. You don't need to worry about a response from another activity being lost if your activity is paused (say, by the user pressing the HOME button); the system will deliver the response when the activity is running again.

0

精彩评论

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