示例#1
0
 /**
  * 初始化
  *
  * @param context
  */
 public void init(Context context)
 {
     mContext = context;
     //获取系统默认的UncaughtException处理器
     mDefaultHandler = Thread.DefaultUncaughtExceptionHandler;
     //设置该CrashHandler为程序的默认处理器
     Thread.DefaultUncaughtExceptionHandler = this;
 }
示例#2
0
 /// <summary>
 /// 初始化
 /// </summary>
 /// <param name="context"></param>
 public void Init(Context context)
 {
     _context           = context;
     _uncaughtException = DefaultUncaughtExceptionHandler;
     DefaultUncaughtExceptionHandler = this;
 }