question: private static Class < ? extends Activity > guessErrorActivityClass ( Context context ) { Class < ? extends Activity > resolvedActivityClass ; resolvedActivityClass = CustomActivityOnCrash . getErrorActivityClassWithIntentFilter ( context ) ; if ( resolvedActivityClass == null ) { resolvedActivityClass = DefaultErrorActivity . class ; } return resolvedActivityClass ; }
target:  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.