开发者

Reporting Android Application Crashes

I've noticed a couple of Android applications that seem to be using a 3rd party crash reporting t开发者_运维技巧ool. 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜