简体   繁体   中英

Reporting Android Application Crashes

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 http://img532.yfrog.com/img532/808/devicefeedback.png

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.

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM