public class StartActivityBehaviour extends BaseCrashBehaviour
| Modifier and Type | Class and Description |
|---|---|
static interface |
StartActivityBehaviour.ActivityType |
CrashRecoverBehaviour.CrashAction| Modifier and Type | Field and Description |
|---|---|
static int |
FOREGROUND_ACTIVITY |
static java.lang.String |
KEY_BUGREPORT_SYNTAX |
static java.lang.String |
KEY_CRASHDATA |
static int |
LAUNCHER_ACTIVTY |
| Constructor and Description |
|---|
StartActivityBehaviour(int activityType)
Will restart the app with current foreground or launcher activity
|
StartActivityBehaviour(int activityType,
CrashRecoverBehaviour.CrashAction preCrashAction,
CrashRecoverBehaviour.CrashAction postCrashAction)
Will restart the app with current foreground or launcher activity
|
StartActivityBehaviour(android.content.Intent intent)
Restarts the app and start given intent
|
StartActivityBehaviour(android.content.Intent intent,
CrashRecoverBehaviour.CrashAction preCrashAction,
CrashRecoverBehaviour.CrashAction postCrashAction)
Restarts the app and start given intent
|
| Modifier and Type | Method and Description |
|---|---|
void |
handleCrash(android.content.Context context,
java.lang.Thread thread,
java.lang.Throwable throwable,
CrashData crashData,
PlanBConfig config)
The main crash handle call.
|
callDefaultExceptionHandler, getPostCrashAction, getPreCrashAction, killProcess, persistCrashDatapublic static final int FOREGROUND_ACTIVITY
public static final int LAUNCHER_ACTIVTY
public static final java.lang.String KEY_CRASHDATA
public static final java.lang.String KEY_BUGREPORT_SYNTAX
public StartActivityBehaviour(android.content.Intent intent,
CrashRecoverBehaviour.CrashAction preCrashAction,
CrashRecoverBehaviour.CrashAction postCrashAction)
intent - preCrashAction - postCrashAction - public StartActivityBehaviour(android.content.Intent intent)
intent - public StartActivityBehaviour(int activityType,
CrashRecoverBehaviour.CrashAction preCrashAction,
CrashRecoverBehaviour.CrashAction postCrashAction)
activityType - if the launcher or foreground activity should be restartedpreCrashAction - postCrashAction - public StartActivityBehaviour(int activityType)
activityType - if the launcher or foreground activity should be restartedpublic void handleCrash(android.content.Context context,
java.lang.Thread thread,
java.lang.Throwable throwable,
CrashData crashData,
PlanBConfig config)
CrashRecoverBehaviourthread - of the crashthrowable - the crashes's throwable classcrashData - the crash data of this crashconfig - current config of the lib