Created
July 19, 2014 06:58
-
-
Save jaredye/395b989775bff8ceb87f to your computer and use it in GitHub Desktop.
华为傻问题
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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