public class CrashHandler
extends java.lang.Object
implements java.lang.Thread.UncaughtExceptionHandler
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
TAG |
限定符和类型 | 方法和说明 |
---|---|
void |
collectDeviceInfo(android.content.Context ctx)
Collect Device info
|
static CrashHandler |
getInstance()
Singleton
|
void |
init(android.content.Context context)
Initialize
|
void |
init(android.content.Context context,
java.lang.String crashFilePath)
Initialize
|
void |
init(android.content.Context context,
java.lang.String crashFilePath,
java.lang.String showMessage)
Initialize
|
void |
uncaughtException(java.lang.Thread thread,
java.lang.Throwable ex)
Caught Exception
|
public static CrashHandler getInstance()
public void init(android.content.Context context, java.lang.String crashFilePath, java.lang.String showMessage)
context
- crashFilePath
- public void init(android.content.Context context)
context
- public void init(android.content.Context context, java.lang.String crashFilePath)
context
- public void uncaughtException(java.lang.Thread thread, java.lang.Throwable ex)
uncaughtException
在接口中 java.lang.Thread.UncaughtExceptionHandler
public void collectDeviceInfo(android.content.Context ctx)
ctx
-