ACRA

object ACRA

Use this class to initialize the crash reporting feature using .init as soon as possible in your Application subclass Application.onCreate method. Configuration items must have been set by using org.acra.annotation.AcraCore above the declaration of your Application subclass.

Author

Kevin Gaudin

Properties

Link copied to clipboard
Link copied to clipboard

the current instance of ErrorReporter. not available if ACRA.init has not yet been called.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The key of the SharedPreference allowing the user to automatically accept sending reports.

Link copied to clipboard

The key of the application default SharedPreference where you can put a 'true' Boolean value to disable ACRA.

Link copied to clipboard

Alternatively, you can use this key if you prefer your users to have the checkbox ticked to enable crash reports. If both acra.disable and acra.enable are set, the value of acra.disable takes over the other.

Link copied to clipboard

The key of the SharedPreference allowing the user to disable sending his device id. Device ID collection is also dependent of the READ_PHONE_STATE permission.

Link copied to clipboard

The key of the SharedPreference allowing the user to disable sending content of logcat/dropbox. System logs collection is also dependent of the READ_LOGS permission.

Link copied to clipboard

The version number of the application the last time ACRA was started. This is used to determine whether unsent reports should be discarded because they are old and out of date.

Link copied to clipboard

The key of the SharedPreference allowing the user to always include his email address.

Functions

Link copied to clipboard
fun init(app: Application, builder: <Error class: unknown class> = CoreConfigurationBuilder(), checkReportsOnApplicationStart: Boolean = true)

Initialize ACRA for a given Application.

fun init(app: Application, config: CoreConfiguration, checkReportsOnApplicationStart: Boolean = true)

Initialize ACRA for a given Application. The call to this method should be placed as soon as possible in the Application.attachBaseContext method.