开发者

Delay the onPause() method

开发者_开发百科

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜