private void handleUncaughtExceptions()
{
Thread.setDefaultUncaughtExceptionHandler (new Thread.UncaughtExceptionHandler()
{
@Override
public void uncaughtException (Thread thread, Throwable e)
{
handleUncaughtException (thread, e);
Log.e(TAG, "error: " + e.getMessage());
}
});
}
try implementing this method in your main activity and calling it in onCreate() of your main activity and see if you can see the crash logs. You can also try and put a breakpoint there and try to reproduce the crash and see what's going on
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…