Android Best way to tell the developer about excepted exceptions

What is the most common way to handle an exception after throwing it. I do not mean what to do in order to return from the exception, and not to close the activity or something else. I mean, how do I tell the developer the error number, StackTrace, and other log files created from the exception?

What is the most common way to send them to the developer? Or is it not so often?

Are you asking the user to send an email containing this information? Do you implement some form similar to that used on sites on the contact page, and automatically send information?

How do developers approach this problem? I would really like to receive feedback from users, so I know where, and if, my application crashes, but I'm not sure where to start.

+4
source share
4 answers

There are several tools that can catch exceptions and send them to you (the developer). For example, look at ACRA and HockeyApp , both of which are significantly more flexible than the built-in support that sends a stack from your Google Play developer account.

+2
source

Check android.util.Log .

How to manage magazines is up to you. You can send them to the server in the Activity.onDestroy() method or specifically request them for user reporting errors.

+3
source

Android has built-in features to help you take care of this :)

When an Android application throws an unhandled exception, the OS automatically prepares a stack trace and asks the user if he or she wants to send it to the developer. If the user submits it, the developer can view the stack trace in the developer console at http://market.android.com/publish .

+3
source

One simple way is to wrap all exception codes in a try-catch and whenever exceptions occur, write them in a text file in the application cache directory (preferably on an SD card). Later zip the text file and send it to your server in the background. You can periodically submit.

This way you can avoid the crash of the application, but you can still collect crash reports.

+3
source

All Articles