private static Class<? extends Activity> guessErrorActivityClass(Context context){
  Class<? extends Activity> resolvedActivityClass;
  resolvedActivityClass=CustomActivityOnCrash.getErrorActivityClassWithIntentFilter(context);
  if (resolvedActivityClass == null) {
    resolvedActivityClass=DefaultErrorActivity.class;
  }
  return resolvedActivityClass;
}

private static Class < ? extends Activity > guessErrorActivityClass ( Context context ) { Class < ? extends Activity > resolvedActivityClass ; resolvedActivityClass = CustomActivityOnCrash . getErrorActivityClassWithIntentFilter ( context ) ; if ( resolvedActivityClass == null ) { resolvedActivityClass = DefaultErrorActivity . class ; } return resolvedActivityClass ; }
internal method used to guess which error activity must be called when the app crashes . it will first get activities from the androidmanifest with intent filter < action android : name = " cat . ereza . customactivityoncrash . error " / > , if it cannot find them , then it will use the default error activity .
