Skip to content
This repository was archived by the owner on May 5, 2026. It is now read-only.

Crashes b25712

Benjamin Diolez edited this page May 5, 2026 · 1 revision

Data collection / Android / Advanced features / 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");
            }
        });
  1. 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

Wiki contents

Clone this wiki locally