Open GoogleCodeExporter opened 9 years ago
Just to add: I have never seen it not happen. And since I like to call
onDestroy as soon as I have an answer from the server it happens a lot.
Pent
Original comment by Lee.Wil...@googlemail.com
on 3 Aug 2010 at 7:21
I think the dead handler logging and this, more serious one go hand-in-hand:
10-18 16:29:34.627: ERROR/ActivityThread(1947): Activity
com.alanco.ShiftLightsPro.PluginActivity has leaked ServiceConnection
com.android.vending.licensing.LicenseChecker@40521d50 that was originally bound
here
10-18 16:29:34.627: ERROR/ActivityThread(1947):
android.app.ServiceConnectionLeaked: Activity
com.alanco.ShiftLightsPro.PluginActivity has leaked ServiceConnection
com.android.vending.licensing.LicenseChecker@40521d50 that was originally bound
here
10-18 16:29:34.627: ERROR/ActivityThread(1947): at
android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:938)
10-18 16:29:34.627: ERROR/ActivityThread(1947): at
android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:833)
10-18 16:29:34.627: ERROR/ActivityThread(1947): at
android.app.ContextImpl.bindService(ContextImpl.java:872)
10-18 16:29:34.627: ERROR/ActivityThread(1947): at
android.content.ContextWrapper.bindService(ContextWrapper.java:347)
10-18 16:29:34.627: ERROR/ActivityThread(1947): at
com.android.vending.licensing.LicenseChecker.checkAccess(LicenseChecker.java:143
)
I create the LicenseChecker in my onCreate() and call onDestroy() in my
activity's onDestroy(). The sequence that leads to this is onCreate() ->
onPause -> onDestory() - onCreate(). Last onCreate() follows onDestroy() very
quickly:
10-18 16:34:15.077: DEBUG/Alanco.ShiftLightsPro(1947): onDestroy
10-18 16:34:15.077: DEBUG/Alanco.ShiftLightsPro(1947): licChecker destroyed
10-18 16:34:15.097: DEBUG/Alanco.ShiftLightsPro(1947): sending license check
<<--- this is called from onCreate()
Original comment by alex.z...@gmail.com
on 18 Oct 2011 at 11:37
"I create the LicenseChecker in my onCreate() and call onDestroy() in my
activity's onDestroy()."
03.2013
Still the Same thing... using LVL
Original comment by pocketso...@gmail.com
on 13 Mar 2013 at 6:10
Hi,
i know this thread is a bit old, but i am having the same problem.
Anyway, i am thinking will it work if we call the LicenseChecker onDestroy
method once the handler processed the response?????
Original comment by moustaph...@gmail.com
on 10 Nov 2013 at 2:09
Original issue reported on code.google.com by
trevorjohns@google.com
on 2 Aug 2010 at 8:00