android.app.ServiceConnectionLeaked: Activity com.quran.labs.androidquran.QuranViewActivity has leaked >ServiceConnection com.quran.labs.androidquran.QuranViewActivity$1@405bef30 that was originally bound here
Searched on Google with the first line of a JAVA stack trace?
We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.
Recommended solutions based on your search
Samebug tips
It's because the service you bind with activity is not stopped when that activity is destroyed. The service remains in the memory causes this exception. To solve this call
doBindService()
inonCreate()
anddoUnbindService()
inonDestroy()
Solutions on the web
via GitHub by afarra
, 1 year agovia GitHub by GoogleCodeExporter
, 1 year agovia Stack Overflow by Streetboy
, 2 years agovia Google Groups by Tim O'Brien, 10 months ago
via GitHub by mcladyz
, 2 years agovia cko.me by Unknown author, 2 years ago
android.app.ServiceConnectionLeaked: Activity com.quran.labs.androidquran.QuranViewActivity has leaked >ServiceConnection com.quran.labs.androidquran.QuranViewActivity$1@405bef30 that was originally bound here
at android.app.LoadedApk$ServiceDispatcher.
(LoadedApk.java:938) at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:833)
at android.app.ContextImpl.bindService(ContextImpl.java:971)
at android.content.ContextWrapper.bindService(ContextWrapper.java:347)
at com.quran.labs.androidquran.QuranViewActivity.bindAudioService(QuranViewActivity.java:540)
at com.quran.labs.androidquran.QuranViewActivity.onCreate(QuranViewActivity.java:90)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:2836)
at android.app.ActivityThread.access$1600(ActivityThread.java:117)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:939)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3687)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(Native Method)