|
|
@ -23,6 +23,7 @@ import android.app.Application;
|
|
|
|
import android.app.Notification;
|
|
|
|
import android.app.Notification;
|
|
|
|
import android.app.NotificationChannel;
|
|
|
|
import android.app.NotificationChannel;
|
|
|
|
import android.app.NotificationManager;
|
|
|
|
import android.app.NotificationManager;
|
|
|
|
|
|
|
|
import android.os.RemoteException;
|
|
|
|
import android.util.Log;
|
|
|
|
import android.util.Log;
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.File;
|
|
|
|
import java.io.File;
|
|
|
@ -41,6 +42,7 @@ public class ApplicationEx extends Application {
|
|
|
|
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
|
|
|
|
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void uncaughtException(Thread thread, Throwable ex) {
|
|
|
|
public void uncaughtException(Thread thread, Throwable ex) {
|
|
|
|
|
|
|
|
if (!(ex instanceof RemoteException) /* DeadSystemException */) {
|
|
|
|
Log.e(Helper.TAG, ex + "\r\n" + Log.getStackTraceString(ex));
|
|
|
|
Log.e(Helper.TAG, ex + "\r\n" + Log.getStackTraceString(ex));
|
|
|
|
|
|
|
|
|
|
|
|
File file = new File(getCacheDir(), "crash.log");
|
|
|
|
File file = new File(getCacheDir(), "crash.log");
|
|
|
@ -61,6 +63,7 @@ public class ApplicationEx extends Application {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (prev != null)
|
|
|
|
if (prev != null)
|
|
|
|
prev.uncaughtException(thread, ex);
|
|
|
|
prev.uncaughtException(thread, ex);
|
|
|
|