开发者

Which methods are called only if I press the Home Button?

开发者 https://www.devze.com 2023-01-08 22:27 出处:网络
Is ther开发者_JAVA技巧e a method (like onDestroy() or onPause() for example) that is only called if I press the Home Button on my device?When you press the Home button on the device, the onPause metho

Is ther开发者_JAVA技巧e a method (like onDestroy() or onPause() for example) that is only called if I press the Home Button on my device?


When you press the Home button on the device, the onPause method will be called. If the device thinks that it needs more memory it might call onStop to let your application shut down. The device can restart your application later from a stopped state. If your process killed, onDestroy will be called.

http://www.androidside.com/data/geditor/0812/1062731775_4e7c4d93_android+activity+life+cycle.jpg

0

精彩评论

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