0
我處理未捕獲的異常在Android作爲跟隨處理「未捕獲的異常」仍然崩潰的應用程序
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
@Override
public void uncaughtException(Thread thread, Throwable e) {
handleUncaughtException(thread, e);
}
})
public void handleUncaughtException(Thread thread, Throwable e) {
Helper.logUncaughtExceptionToFile(e); // Just to log the exception
}
它正常工作對我來說,它處理異常,但是當異常發生得到了打電話給我的函數,則應用程序崩潰。這是應該如何工作?我不希望應用程序崩潰
請張貼您的logcat崩潰。 – prakash
我的logcat –