tags:

views:

185

answers:

4

I've noticed a couple of Android applications that seem to be using a 3rd party crash reporting tool. Has anyone seen this screen and do you know where I can find it? I started using http://code.google.com/p/android-remote-stacktrace/ but i rather not require internet permissions if I can use an intent to send emails.

alt text

+1  A: 

As the link you gave is an application under the `MIT˘ licence, you are allowed to change the application. in ExceptionHandler.java.submitStackTraces() is the code which sends the stacktrace. Edit this so that the information is send with an Intent for mail, which is possible.

MrSnowflake
Do note, multiple stacktraces can be send, so multiple mail instances will show up.
MrSnowflake
Thanks, I've seen other examples but i'm not looking to alter anything if there is a common tool out there. I rather use something I don't have to maintain and is familiar to users.
Travis
A: 

Simplest way is to use

Thread.setDefaultUncaughtExceptionHandler 

In your main activitys onCreate. This will catch all exceptions not handled by a try catch block. I also recommed sending an lightweight error-report to your server with the stacktrace. This way you can aggregate all crashreports and fastly see where your code is buggy. You will get almost all force-closed reported. I dont think using email is a good idea, as 100 of emails are not so easy to handle, count etc... also Its abit "raping" your user, since he never have asked for sending any emails, He does not even have a clue what its about, unless he is a java developer...

So, don't bother the user with error-reports if you can avoid it.

PHP_Jedi
A: 

I'd like something like this for normal java reporting to google code. Without requiring the user to authenticate if possible.

i30817
A: 

The upcoming release of Android "Froyo" will include a new bug reporting feature for Market apps. Developers will receive crash and freeze reports from their users. The reports will be available when they log into their Android Market publisher account. No more blind debugging!

http://android-developers.blogspot.com/2010/05/google-feedback-for-android.html

Travis