Handle force close?
问题 Is there a way to notify an activity/service of a force-close request right before it gets killed? I mean when the user hits the force close button in Menu > Settings > Applications > Manage applications > app name > Force Close . 回答1: I think the ActivityManager just kills the hosting process, so you may not be able to get any event/message/warning. To check you could create an app that has a single Activity that lets you know if onDestroy is called, and further if isFinishing is invoked.