user1871869
user1871869

Reputation: 3367

How to track errors when distributing Android Application to Alpha Testers?

I recently released an application for some users to use my newly made Android Application. However, they are having trouble when they perform the Facebook Login feature that I have made.

It seems to work fine on my phone, but on other phones it seems to crash. I would like to know what is causing the application to crash so I can further debug this. Is there anywhere or anything that I can use to debug this problem further?

I have looked at both the Facebook Developer Console and Google Play Developer Console and neither seem to show or point me to where my error is. If anyone could help that would be great. Thanks!

Upvotes: 1

Views: 55

Answers (2)

s.d
s.d

Reputation: 29436

There are plenty of cloud hosted solutions.These might be paid, and require signing up.

If you want to roll you own simple reporting mechanism, then there is an Android library: ARCA . You can set it up to send crash reports to an email address.

First, you'll need to include the library in app's build.gradle file:

compile 'ch.acra:acra:4.9.0'

Then declare extent the Application class (or modify if you already have) as :

import org.acra.*;
import org.acra.annotation.*;

@ReportsCrashes(mailTo = "[email protected]",                
                mode = ReportingInteractionMode.TOAST,
                resToastText = R.string.crash_toast_text)
public class MyApplication extends Application {
    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);

        // The following line triggers the initialization of ACRA
        ACRA.init(this);
    }
}

The two thing necessary are:

  1. Add @ReportsCrashes annotation to app's application class, with recipient mail address.
  2. Override attachBaseContext() and include ACRA.init() in it.

Official docs:

  1. Setting up ARCA.
  2. Advanced configuration.

Upvotes: 0

Shaishav
Shaishav

Reputation: 5312

Use any Crashlytics/Analytics tools to not only get error logs but also usage statictics which can be pretty useful insight during pre-release tests. Some of them like Crashlytics by Fabric are even free and are very easy to integrate. But, there are many others too.

Upvotes: 2

Related Questions