@AcraCore private static class AnnotatedClass extends Application { }
@AcraCore( buildConfigClass = BuildConfig.class, reportFormat=StringFormat.JSON ) @AcraHttpSender( uri=BuildConfig.ACRA_URL, httpMethod=org.acra.sender.HttpSender.Method.PUT ) public class ACRAApplication extends Application { @Override protected void attachBaseContext(Context base) { super.attachBaseContext(base); if (BuildConfig.ACRA_INSTALL) { ACRA.init(this); } } }
@AcraCore( buildConfigClass = BuildConfig.class, reportFormat=StringFormat.JSON ) @AcraNotification( resText = R.string.msg_acra_notify_text, resTitle = R.string.msg_acra_notify_title, resChannelName = R.string.channel, sendOnClick = true ) @AcraHttpSender( uri=BuildConfig.ACRA_URL, httpMethod=org.acra.sender.HttpSender.Method.PUT ) public class ACRANotificationApplication extends Application { @Override public void onCreate() { super.onCreate(); if (BuildConfig.ACRA_INSTALL) { ACRA.init(this); } } }
@AcraCore( buildConfigClass = BuildConfig.class, reportFormat=StringFormat.JSON ) @AcraDialog( resText = R.string.msg_acra_dialog, resCommentPrompt = R.string.msg_acra_comment_prompt, resEmailPrompt = R.string.msg_acra_email_prompt, resTheme = R.style.AppTheme_Dialog ) @AcraHttpSender( uri=BuildConfig.ACRA_URL, httpMethod=org.acra.sender.HttpSender.Method.PUT ) public class ACRADialogApplication extends Application { @Override protected void attachBaseContext(Context base) { super.attachBaseContext(base); if (BuildConfig.ACRA_INSTALL) { ACRA.init(this); } } }
@AcraCore(applicationLogFile = "/cSploitd.log")
@AcraCore( buildConfigClass = org.acra.dialog.BuildConfig.class, excludeMatchingSharedPreferencesKeys = {"username","hkey"},
@AcraCore(buildConfigClass = BuildConfig.class) public class DemoApplication extends Application
@AcraCore( buildConfigClass = BuildConfig.class, sharedPreferencesName = "pref"
@AcraCore(reportContent = { ReportField.APP_VERSION_CODE, ReportField.APP_VERSION_NAME, ReportField.USER_COMMENT,
@AcraCore(reportFormat = StringFormat.JSON, reportContent = { ANDROID_VERSION, APP_VERSION_CODE, APP_VERSION_NAME, APPLICATION_LOG, BRAND,