What happens when android app is force closed
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.
精彩评论