活动已泄露ServiceConnection com.android.org.chromium.com.googlecode.eyesfree.braille.selfbraille.SelfBrailleClient $ Connection

时间:2014-03-06 03:07:54

标签: android exception selfbrailleclient

我的Android应用在片段中有一个Webview,Webview正在显示一个简单的HTML文档。当我退出应用程序时,logcat显示以下错误:

03-06 10:58:29.468: E/ActivityThread(420): Activity com.abc.test.MainActivity has leaked ServiceConnection com.android.org.chromium.com.googlecode.eyesfree.braille.selfbraille.SelfBrailleClient$Connection@66247648 that was originally bound here
03-06 10:58:29.468: E/ActivityThread(420): android.app.ServiceConnectionLeaked: Activity com.abc.test.MainActivity has leaked ServiceConnection com.android.org.chromium.com.googlecode.eyesfree.braille.selfbraille.SelfBrailleClient$Connection@66247648 that was originally bound here
03-06 10:58:29.468: E/ActivityThread(420):  at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:989)
03-06 10:58:29.468: E/ActivityThread(420):  at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:883)
03-06 10:58:29.468: E/ActivityThread(420):  at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1649)
03-06 10:58:29.468: E/ActivityThread(420):  at android.app.ContextImpl.bindService(ContextImpl.java:1632)
03-06 10:58:29.468: E/ActivityThread(420):  at android.content.ContextWrapper.bindService(ContextWrapper.java:517)
03-06 10:58:29.468: E/ActivityThread(420):  at com.android.org.chromium.com.googlecode.eyesfree.braille.selfbraille.SelfBrailleClient.doBindService(SelfBrailleClient.java:125)
03-06 10:58:29.468: E/ActivityThread(420):  at com.android.org.chromium.com.googlecode.eyesfree.braille.selfbraille.SelfBrailleClient.access$1000(SelfBrailleClient.java:43)
03-06 10:58:29.468: E/ActivityThread(420):  at com.android.org.chromium.com.googlecode.eyesfree.braille.selfbraille.SelfBrailleClient$SelfBrailleHandler.handleRebindService(SelfBrailleClient.java:260)
03-06 10:58:29.468: E/ActivityThread(420):  at com.android.org.chromium.com.googlecode.eyesfree.braille.selfbraille.SelfBrailleClient$SelfBrailleHandler.handleMessage(SelfBrailleClient.java:245)
03-06 10:58:29.468: E/ActivityThread(420):  at android.os.Handler.dispatchMessage(Handler.java:102)
03-06 10:58:29.468: E/ActivityThread(420):  at android.os.Looper.loop(Looper.java:136)
03-06 10:58:29.468: E/ActivityThread(420):  at android.app.ActivityThread.main(ActivityThread.java:5105)
03-06 10:58:29.468: E/ActivityThread(420):  at java.lang.reflect.Method.invoke(Native Method)
03-06 10:58:29.468: E/ActivityThread(420):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
03-06 10:58:29.468: E/ActivityThread(420):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)

我尝试在网上搜索错误但没有运气。有人知道这个例外是什么吗?

我正在使用以下设备进行测试:

Device: LG G2 (F320S21d)
Android Version: 4.4.2
Runtime Mode: ART

1 个答案:

答案 0 :(得分:1)

生命周期onDestory()

需要一些代码
>> result

result =

     8
     5
     9