o_0'' for real ?!? that would mean i'm depending on luck and good faith then calling anything on that connection. oh, well. in the garbage collector we trust ;-)
but something is still bugging me: further observations seemed like that it's depending on whether i call service.unregisterCallback (myCallback) before unbind(,,) or not. if i don't, the error goes away, but the callback gets leaked. would it be a better strategy to make the service throw away the callbacks by itself then it gets unbound ? On Dec 12, 3:59 am, "Dianne Hackborn" <hack...@android.com> wrote: > It means that ServiceConnection is not bound to the service. Just because > you can call methods on the IBinder you got at some previous point doesn't > mean you are still bound to it. (A little unfortunate, for for efficiency's > sake there it is.) > > On Thu, Dec 11, 2008 at 3:33 PM, zero <zeroo...@googlemail.com> wrote: > > > Hi all > > i have a remote service running while the controlling activity is not > > displayed. > > i call unbind(mConnection) in onPause, which sometimes works and > > sometimes > > throws Service not registered. I know i'm bound to the service (doing > > the bind in onCreate), because i can execute it's functions. > > so why is it unregistered and how can i prevent that ? > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support. All such questions should be posted on public > forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---