Activity已在Android中泄露ServiceConnection错误

时间:2014-09-19 08:42:56

标签: android cordova text-to-speech serviceconnection connection-leaks

我的应用程序是通过Phone-Gap开发的。但是当我们从可访问性打开TALK_BACK选项时,我收到如下错误消息,并且应用程序崩溃了一段时间(但并非总是如此)。我该如何解决?

    7559-7559/com.mdlive.mobile E/ActivityThread? Activity com.mdlive.mobile.MDLIVEMain has leaked ServiceConnection com.android.org.chromium.com.googlecode.eyesfree.braille.selfbraille.SelfBrailleClient$Connection@44c85aa8 that was originally bound here
android.app.ServiceConnectionLeaked: Activity com.mdlive.mobile.MDLIVEMain has leaked ServiceConnection com.android.org.chromium.com.googlecode.eyesfree.braille.selfbraille.SelfBrailleClient$Connection@44c85aa8 that was originally bound here
        at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:988)
        at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:882)
        at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1949)
        at android.app.ContextImpl.bindService(ContextImpl.java:1932)
        at android.content.ContextWrapper.bindService(ContextWrapper.java:529)
        at com.android.org.chromium.com.googlecode.eyesfree.braille.selfbraille.SelfBrailleClient.doBindService(SelfBrailleClient.java:125)
        at com.android.org.chromium.com.googlecode.eyesfree.braille.selfbraille.SelfBrailleClient.access$1000(SelfBrailleClient.java:43)
        at com.android.org.chromium.com.googlecode.eyesfree.braille.selfbraille.SelfBrailleClient$SelfBrailleHandler.handleRebindService(SelfBrailleClient.java:260)
        at com.android.org.chromium.com.googlecode.eyesfree.braille.selfbraille.SelfBrailleClient$SelfBrailleHandler.handleMessage(SelfBrailleClient.java:245)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:157)
        at android.app.ActivityThread.main(ActivityThread.java:5356)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:515)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
        at dalvik.system.NativeStart.main(Native Method)

0 个答案:

没有答案