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.
精彩评论