标签:
错误一:
Activity com.example.useLocalService.newAct has leaked ServiceConnection com.example.useLocalService.newAct$1@2185f770 that was originally bound here
出现这个错误是在调试Service中出现的出现的,出现时机为按返回键再打开应用
出错原因解析:service没有自我结束服务,也没有被Activity解除绑定.造成内存泄露.
解决方案:在onDestroy中调用stopSelf();
标签:
原文地址:http://www.cnblogs.com/lingzhishitu/p/4467015.html