Question

I want to create a crash report for an Android application not on the Google play store. How to do it?

My application is used only for my clients so I can't published it on Google play and I need to get the crash by email or by any other way. The most important is to correct an error that happened rarely with my clients but is very important for me to correct it.

any help please from where do I have to start?? any link ?? or any easy way to do it.

Thank you for your help

Was it helpful?

Solution

Use 3rd party libraries like BugSense(http://bugsense.com/) It offers crash reports with call stack and phone state and is very easy to use, one line only ! The only con is that your application needs to have internet access. If its offline then you need to have manual logs(write a log file on phone memory)that your users can forward to you.

Edit: Docs here - https://www.bugsense.com/docs/android

OTHER TIPS

I'm using it :https://code.google.com/p/acra/

  • Just copy acra-xxx.jar into libs folder and put below code on you Application.java

    @ReportsCrashes(formKey = "", mailTo = "", customReportContent = { ReportField.APP_VERSION_CODE, ReportField.APP_VERSION_NAME, ReportField.ANDROID_VERSION, ReportField.PHONE_MODEL, ReportField.CUSTOM_DATA, ReportField.STACK_TRACE, ReportField.LOGCAT }, mode = ReportingInteractionMode.TOAST, resToastText = R.string.crash_toast_text)

    public class MyApplication extends Application { @Override public void onCreate() { super.onCreate(); ACRA.init(this); } }

You can try ACRA tool. Its free API .

here is link: ACRA.

or you can implement UncaughtExceptionHandler in your apps.

Implemented by objects that want to handle cases where a thread is being terminated by an uncaught exception. Upon such termination, the handler is notified of the terminating thread and causal exception. If there is no explicit handler set then the thread's group is the default handler.

UncaughtExceptionHandler

There are a few different solutions available for Android, Bugsense and Acra are two of them. Though Crittercism has a more mature solution and is one of the few that collects exceptions from NDK (or Dalvik) crashes.

Their free tier retains 30 days of data at 30k MAU (which is their pricing method, not the number of exceptions).

Here's a link: http://www.crittercism.com

Their docs: https://app.crittercism.com/developers/docs-android

As a note, the NDK monitoring is available for their paid tier (Professional).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top