Skip to content

Instantly share code, notes, and snippets.

@jaredye
Created July 19, 2014 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaredye/395b989775bff8ceb87f to your computer and use it in GitHub Desktop.
Save jaredye/395b989775bff8ceb87f to your computer and use it in GitHub Desktop.
华为傻问题
final Thread.UncaughtExceptionHandler subclass = Thread.currentThread().getUncaughtExceptionHandler();
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
@Override
public void uncaughtException(Thread paramThread, Throwable paramThrowable) {
// Log.e("com.jaredye.todo", paramThrowable.toString());
// Log.e("com.jaredye.todo", paramThrowable.getMessage());
Log.e("com.jaredye.todo", Log.getStackTraceString(paramThrowable));
subclass.uncaughtException(paramThread, paramThrowable);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment