- . ( ):
android:name=".MyApplication"
:
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:name=".MyApplication"
android:theme="@style/AppTheme" >
- ( Android ), . . .
:
@ReportsCrashes(
formUri = "https://backend.com",
customReportContent = { ReportField.APP_VERSION_NAME, ReportField.PACKAGE_NAME,ReportField.ANDROID_VERSION, ReportField.PHONE_MODEL,ReportField.LOGCAT },
mode = ReportingInteractionMode.TOAST,
resToastText = R.string.crash_toast_text
)
public class ACRAHandler extends Application {
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
final ACRAConfiguration config = new ConfigurationBuilder(this)
.build();
ACRA.init(this, config);
}
}
Firebase, - . , , Firebase.
, ACRA Github: https://github.com/ACRA/acra/wiki/BasicSetup
I answered this because it was so long ago when the answers came and he needed an update
source
share