开发者

What happens when android app is force closed

开发者 https://www.devze.com 2023-02-15 16:24 出处:网络
I am interested to know what happens when a user click a \"force close\" in a pop up when application is not responding for a significant amount of time.

I am interested to know what happens when a user click a "force close" in a pop up when application is not responding for a significant amount of time.

What all events will be fired? Will the task removed from tray?

I think when an activity is force closed, dalvik will clean the app cache and start last activity in the back stack. But not sure how exactly it works.

Any input is appreciated.

Here is a resource I am looking at http://developer.android.com/guide/topics/f开发者_如何学Pythonundamentals/tasks-and-back-stack.html


Force quit will kill the application, sending the SIGKILL signal to the process and thus killing the virtual machine. No signals are sent from the Virtual Machine to your application when this happens, and state won't be recovered after that.

Hope it helps.

Regards.


Here is an answer that provides some details.

Also refer to Designing for Responsiveness for tips on avoiding the ANR dialog.

0

精彩评论

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