我在使用Android 4.4.2的华为P6上运行的应用程序上遇到此异常
threadid=1: thread exiting with uncaught exception (group=0x41601c50)
没有给出堆栈跟踪,我测试的每个其他设备(SG Ace 2,Nexus 7,Nexus 5,SGS3)运行代码都很好。
这是应用程序崩溃时执行的代码:
@Override
protected void onResume(){
super.onResume();
if (System.currentTimeMillis()/1000 - Singleton.getInstance().getStoptime() > constants.DISPOSE_TIMEOUT) {
Singleton.getInstance().destroyInstance();
Intent intent = new Intent(getApplicationContext(), main_activity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
return;
}
}
编辑:崩溃后整个手机的完整logcat可以在这里找到:http://pastebin.com/uuuSwVAn