congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ACRA.init
Code IndexAdd Tabnine to your IDE (free)

How to use
init
method
in
org.acra.ACRA

Best Java code snippets using org.acra.ACRA.init (Showing top 20 results out of 315)

origin: ankidroid/Anki-Android

/**
 * Set the ACRA ConfigurationBuilder and <b>re-initialize the ACRA system</b> with the contents
 * @param acraCoreConfigBuilder the full ACRA config to initialize ACRA with
 */
private void setAcraConfigBuilder(CoreConfigurationBuilder acraCoreConfigBuilder) {
  this.acraCoreConfigBuilder = acraCoreConfigBuilder;
  ACRA.init(this, acraCoreConfigBuilder);
}
origin: commonsguy/cw-omnibus

 @Override
 public void onCreate() {
  super.onCreate();

  if (BuildConfig.ACRA_INSTALL) {
   ACRA.init(this);
  }
 }
}
origin: ACRA/acra

/**
 * <p>
 * Initialize ACRA for a given Application.
 * <p>
 * The call to this method should be placed as soon as possible in the {@link Application#attachBaseContext(Context)} method.
 * <p>
 * Sends any unsent reports.
 * </p>
 *
 * @param app    Your Application class.
 * @param config CoreConfiguration to manually set up ACRA configuration.
 * @throws IllegalStateException if it is called more than once.
 */
public static void init(@NonNull Application app, @NonNull CoreConfiguration config) {
  init(app, config, true);
}
origin: ACRA/acra

/**
 * <p>
 * Initialize ACRA for a given Application.
 * <p>
 * The call to this method should be placed as soon as possible in the {@link Application#attachBaseContext(Context)} method.
 * <p>
 * Uses the configuration as configured with the @ReportCrashes annotation.
 * Sends any unsent reports.
 * </p>
 *
 * @param app     Your Application class.
 * @param builder ConfigurationBuilder to manually set up ACRA configuration.
 */
public static void init(@NonNull Application app, @NonNull CoreConfigurationBuilder builder) {
  init(app, builder, true);
}
origin: commonsguy/cw-omnibus

 @Override
 protected void attachBaseContext(Context base) {
  super.attachBaseContext(base);

  if (BuildConfig.ACRA_INSTALL) {
   ACRA.init(this);
  }
 }
}
origin: commonsguy/cw-omnibus

 @Override
 protected void attachBaseContext(Context base) {
  super.attachBaseContext(base);

  if (BuildConfig.ACRA_INSTALL) {
   ACRA.init(this);
  }
 }
}
origin: ACRA/acra

/**
 * <p>
 * Initialize ACRA for a given Application.
 * <p>
 * The call to this method should be placed as soon as possible in the {@link Application#attachBaseContext(Context)} method.
 * <p>
 * Uses the configuration as configured with the @ReportCrashes annotation.
 * Sends any unsent reports.
 * </p>
 *
 * @param app Your Application class.
 * @throws IllegalStateException if it is called more than once.
 */
public static void init(@NonNull Application app) {
  init(app, new CoreConfigurationBuilder(app));
}
origin: cSploit/android

 @Override
 protected void attachBaseContext(Context base) {
  super.attachBaseContext(base);
  MultiDex.install(this);
  ACRA.init(this);
 }
}
origin: ACRA/acra

/**
 * <p>
 * Initialize ACRA for a given Application.
 * <p>
 * The call to this method should be placed as soon as possible in the {@link Application#attachBaseContext(Context)}  method.
 * </p>
 *
 * @param app                            Your Application class.
 * @param builder                        ConfigurationBuilder to manually set up ACRA configuration.
 * @param checkReportsOnApplicationStart Whether to invoke ErrorReporter.checkReportsOnApplicationStart().
 */
public static void init(@NonNull Application app, @NonNull CoreConfigurationBuilder builder, boolean checkReportsOnApplicationStart) {
  try {
    init(app, builder.build(), checkReportsOnApplicationStart);
  } catch (ACRAConfigurationException e) {
    log.w(LOG_TAG, "Configuration Error - ACRA not started : " + e.getMessage());
  }
}
origin: TeamNewPipe/NewPipe

private void initACRA() {
  try {
    final ACRAConfiguration acraConfig = new ConfigurationBuilder(this)
        .setReportSenderFactoryClasses(reportSenderFactoryClasses)
        .setBuildConfigClass(BuildConfig.class)
        .build();
    ACRA.init(this, acraConfig);
  } catch (ACRAConfigurationException ace) {
    ace.printStackTrace();
    ErrorActivity.reportError(this,
        ace,
        null,
        null,
        ErrorActivity.ErrorInfo.make(UserAction.SOMETHING_ELSE, "none",
        "Could not initialize ACRA crash report", R.string.app_ui_crash));
  }
}
origin: ACRA/acra

@Test
public void init() {
  Application application = RuntimeEnvironment.application;
  CoreConfigurationBuilder builder = new CoreConfigurationBuilder(application).setPluginLoader(new SimplePluginLoader(StacktraceCollector.class, TestAdministrator.class));
  ACRA.init(application, builder);
  ACRA.getErrorReporter().handleException(new RuntimeException());
}
origin: ACRA/acra

@Test(expected = AssertionError.class)
public void failing() {
  Application application = RuntimeEnvironment.application;
  CoreConfigurationBuilder builder = new CoreConfigurationBuilder(application).setPluginLoader(new SimplePluginLoader(FailingTestAdministrator.class));
  ACRA.init(application, builder);
  ACRA.getErrorReporter().handleException(new RuntimeException());
}
origin: cSploit/android

ACRA.init(this);
Services.init(this);
builder.getPluginConfigurationBuilder(HttpSenderConfigurationBuilder.class);
builder.getPluginConfigurationBuilder(NotificationConfigurationBuilder.class);
ACRA.init(this, builder);
origin: andresth/Kandroid

  @Override
  public void onCreate() {
    super.onCreate();
    Log.i(Constants.TAG, "Start ACRA");
    ACRA.init(this);
  }
}
origin: maks/MGit

@Override
protected void attachBaseContext(Context base) {
  super.attachBaseContext(base);
  // The following line triggers the initialization of ACRA
  if (!BuildConfig.DEBUG) {
    ACRA.init(this);
  }
}
origin: The-LoneWolf/AndroPress

  @Override
  public void onCreate() {
    super.onCreate();
    ACRA.init(this);
  }
}
origin: hiteshsahu/ECommerce-App-Android

@Override
public void onCreate() {
  super.onCreate();
  mInstance = this;
  // The following line triggers the initialization of ACRA for crash Log Reposrting
  if (PreferenceHelper.getPrefernceHelperInstace().getBoolean(
      this, PreferenceHelper.SUBMIT_LOGS, true)) {
    ACRA.init(this);
  }
}
origin: antest1/kcanotify

@Override
protected void attachBaseContext(Context base) {
  super.attachBaseContext(base);
  MultiDex.install(this);
  ACRA.init(this);
}
origin: andstatus/andstatus

@Override
protected void attachBaseContext(Context base) {
  MyLog.v(this, () -> "attachBaseContext started" + (isAcraProcess ? ". ACRA process" : ""));
  super.attachBaseContext(base);
  ACRA.init(this);
  TamperingDetector.initialize(this);
}
origin: proninyaroslav/libretorrent

  @Override
  protected void attachBaseContext(Context base)
  {
    super.attachBaseContext(base);

    Utils.migrateTray2SharedPreferences(this);
    ACRA.init(this);
    EventBus.builder().logNoSubscriberMessages(false).installDefaultEventBus();
  }
}
org.acraACRAinit

Javadoc

Initialize ACRA for a given Application.

The call to this method should be placed as soon as possible in the Application#attachBaseContext(Context) method.

Uses the configuration as configured with the @ReportCrashes annotation. Sends any unsent reports.

Popular methods of ACRA

  • getErrorReporter
  • getACRASharedPreferences
  • getConfig
  • getCurrentProcessName
  • isACRASenderServiceProcess
  • isInitialised
  • setLog

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getApplicationContext (Context)
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Path (java.nio.file)
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Collectors (java.util.stream)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now