Skip to content

Instantly share code, notes, and snippets.

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);
}
});
@jaredye
jaredye / test
Created May 15, 2014 10:10
test
dfasdfasdfasdfasdfadf
@jaredye
jaredye / test
Created May 15, 2014 10:10
test
if dfdf
@jaredye
jaredye / progess.py
Created February 20, 2013 06:45
Predict Finish Time
# -*- coding: utf-8 -*-
"""
统计进度
"""
import time
import datetime
@jaredye
jaredye / progess.py
Created February 20, 2013 06:44
Measure Progess, Predict Finish Time.
# -*- coding: utf-8 -*-
"""
统计进度
"""
import time
import datetime