> How would I know when the user clicks the "Force Close" button?
You won't.
> I
> want to distinguish when my application closes because of an exception
> and when the user closes the application.
Don't crash. Or, use Thread and setDefaultUncaughtExceptionHandler()
to bypass the "Force Close" dialog and handle it yourself.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.0
Available!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment