开发者

Graceful process shutdown on Android

How can I terminate an app in the Android Emulator so that Activity's onDestroy is called? Stopping the process from the Devices window seems to be a process ki开发者_JS百科ll, not a graceful closing like the OS does.


Just pressing the back button in the emulator should finish the activity and call onDestroy. That I suppose is the default behavior if you have not overridden it through onBackPressed.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜