Developers » AS2 tagging » Android » Advanced features » Crashes
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:
- Enable crash detection
ATInternet.getInstance().getDefaultTracker().setConfig("enableCrashDetection", true, new SetConfigCallback() { @Override public void setConfigEnd() { Log.d(null, "Crash detection is enabled now"); } });
- 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());
Last update: 14/12/2018Crash data is reset after each method call.