在关闭的时候引起的,STOP和DESTROY函数有空指针类似的错误
threadid=15: thread exiting with uncaught exception (group=0x4102e438) 07-30 10:46:28.350: W/dalvikvm(17074): threadid=17: thread exiting with uncaught exception (group=0x4102e438) 07-30 10:46:28.370: W/SignalStrength(524): getLevel=3 07-30 10:46:28.370: W/dalvikvm(17074): threadid=15: thread exiting with uncaught exception (group=0x4102e438) 07-30 10:46:28.410: W/dalvikvm(17074): threadid=17: thread exiting with uncaught exception (group=0x4102e438) 07-30 10:46:28.440: W/dalvikvm(17074): threadid=15: thread exiting with uncaught exception (group=0x4102e438) 07-30 10:46:28.460: W/dalvikvm(17074): threadid=17: thread exiting with uncaught exception (group=0x4102e438) 07-30 10:46:28.510: E/dalvikvm(17074): GC_CONCURRENT freed 409K, 15% free 12486K/14535K, paused 12ms+2ms, total 39ms 07-30 10:46:28.520: W/dalvikvm(17074): threadid=15: thread exiting with uncaught exception (group=0x4102e438) 07-30 10:46:28.540: W/dalvikvm(17074): threadid=17: thread exiting with uncaught exception (group=0x4102e438) 07-30 10:46:28.560: W/dalvikvm(17074): threadid=15: thread exiting with uncaught exception (group=0x4102e438) 07-30 10:46:28.590: W/dalvikvm(17074): threadid=17: thread exiting with uncaught exception (group=0x4102e438) 07-30 10:46:28.610: W/dalvikvm(17074): threadid=15: thread exiting with uncaught exception (group=0x4102e438) 07-30 10:46:28.630: W/dalvikvm(17074): threadid=17: thread exiting with uncaught exception (group=0x4102e438) 07-30 10:46:28.660: W/dalvikvm(17074): threadid=15: thread exiting with uncaught exception (group=0x4102e438) 07-30 10:46:28.680: W/dalvikvm(17074): threadid=17: thread exiting with uncaught exception (group=0x4102e438) 07-30 10:46:28.700: W/dalvikvm(17074): threadid=15: thread exiting with uncaught exception (group=0x4102e438) 07-30 10:46:28.760: E/dalvikvm(17074): GC_CONCURRENT freed 546K, 12% free 12803K/14535K, paused 11ms+2ms, total 49ms 07-30 10:46:28.850: E/dalvikvm(427): GC_EXPLICIT freed 630K, 52% free 13026K/26887K, paused 4ms+7ms, total 88ms 07-30 10:46:28.850: W/dalvikvm(17074): threadid=17: thread exiting with uncaught exception (group=0x4102e438) 07-30 10:46:28.870: W/dalvikvm(17074): threadid=15: thread exiting with uncaught exception (group=0x4102e438) 07-30 10:46:28.900: W/dalvikvm(17074): threadid=17: thread exiting with uncaught exception (group=0x4102e438) 07-30 10:46:28.940: W/dalvikvm(17074): threadid=15: thread exiting with uncaught exception (group=0x4102e438) 07-30 10:46:42.750: E/InputDispatcher(427): channel '4197f7f8 com.sunbriddata.inspectteminal.activity/com.sunbriddata.inspectteminal.activity.HomePage (server)' ~ Channel is unrecoverably broken and will be disposed!
错误原因:第一次在主界面的时候采用的服务方式进行版本的更新检测,后来换成了AsyncTask直接进行更新检测,这是忘记了取消原来的部分代码。unregisterReceiver(reciver);导致在onDestroy()的时候取消广播接收者出错。没有弹出程序意外终止,只是程序在退出时很卡,启动直接黑屏。因为reciver没有初始化,因此产生错误.但程序又处于退出状态,因此没报程序意外终止。