Skip to content Skip to sidebar Skip to footer

Is It Possible To Replace The Default "force Close" Dialog In Android?

I would like the users of my android app to have the option to email me the stacktrace of any uncaught exception that crashes my app. Originally I thought I would just wrap every

Solution 1:

You cannot do what the subject line states from an SDK application.

However:

So what I am really looking for is a way to specify some method to be the default handler for any uncaught exceptions. Any suggestions?

Use Thread.setDefaultUncaughtExceptionHandler().

Also, consider using Flurry or DroidDrop or something for the actual delivery of your exception data.

Solution 2:

You could also use Bugsense.com to get your exception data (it's free).

PS: I am the founder :)

Post a Comment for "Is It Possible To Replace The Default "force Close" Dialog In Android?"