首页 > 代码库 > Android Thread.UncaughtExceptionHandler异常消息捕获

Android Thread.UncaughtExceptionHandler异常消息捕获


	public void uncaughtException(Thread thread, Throwable ex) {
		//处理异常
		Log.e("崩溃",thread.getName()+ex.toString());
		//发送到服务器
		//dialog提醒
	}



重写Application的onTerminate() 关闭整个程序后做的来操作;


Android Thread.UncaughtExceptionHandler异常消息捕获