How to determine if the Android Application was force closed?
问题 I need to determine, if my application was force closed, crashed, or terminated normally. My question is: How would you do such a thing in Android environment. Handling exceptions is easy, I only need to Replace Thread.setDefaultExceptionHandler. The hard part is: how can i distinguish a force close shut down from a "normal" (like back press, or home button + lots of time, etc)? The reason is: We can synchronize the content of the local database, to a server. And we have a good reasons to