Crashes

 

Foreword

AT Internet’s SDK enables the recovery of application crash information.

When a hit is sent following the re-opening of the application, this information will be added to the stc variable.

AT Internet’s Android SDK offers the retrieval of application crash information by default.

It is possible to enable/disable the retrieval of crash information by modifying the configuration:

  1. Enable crash detection
    ATInternet.getInstance().getDefaultTracker().setConfig("enableCrashDetection", true, new SetConfigCallback() {
                @Override
                public void setConfigEnd() {
                    Log.d(null, "Crash detection is enabled now");
                }
            });
  2. Disable crash detection
    ATInternet.getInstance().getDefaultTracker().setConfig("enableCrashDetection", false, new SetConfigCallback() {
                @Override
                public void setConfigEnd() {
                    Log.d(null, "Crash detection is disabled now");
                }
            });

The SDK also has a method to directly retrieve crash information:

Tracker tracker = ATInternet.getInstance().getDefaultTracker();
Log.d("CrashInformation", tracker.getCrashInformation().toString());

Crash data is reset after each method call.

Last update: 14/12/2018