Hi hackbod,

I am very confused about your comment.  In the APIDemo,
LocalServiceBinding.java calls bindService method but nowhere in the
entire demo source code base does it call unbindService method.

Please clarify. Thanks!

On Mar 13, 10:04 am, hackbod <[EMAIL PROTECTED]> wrote:
> No, you just need to make sure to unbind (and unregister) by the time
> you return on onDestroy().
>
> As the Activity doc tries to explain, there are three main bind/unbind
> groupings you will use: onCreate() and onDestroy(), onStart() and
> onStop(), and onResume() and onPause().
>
> On Mar 13, 6:06 am, "jim.renkel" <[EMAIL PROTECTED]> wrote:
>
> > I had the same problem until I noticed that the M5 SDK said to unbind
> > services in activities' onPause() methods, not onFreeze methods as
> > previous SDKs had said to do. I have tried unsuccessfully to find this
> > reference in the M5 SDK documentation (Sorry :-( ), but moving the
> > unbinds did solve this problem for me.
>
> > Hope this helps.
>
> > Jim Renkel
>
> > On Mar 13, 5:31 am, "David Welton" <[EMAIL PROTECTED]> wrote:
>
> > > This isn't in the docs, and Googling it isn't successful, so I thought
> > > I'd ask here.
>
> > > E/ActivityThread(  595): Activity foo.bar.Bop hasleaked
> > > ServiceConnection [EMAIL PROTECTED] that
> > > was originally bound here
> > > E/ActivityThread(  595): android.app.ServiceConnectionLeaked: Activity
> > > foo.bar.Bop hasleakedServiceConnection
> > > [EMAIL PROTECTED] that was originally
> > > bound here
>
> > > What's that mean exactly?  How do I avoid leaking it?
>
> > > --
> > > David N. Welton
>
> > >http://www.welton.it/davidw/
>
> > >http://www.dedasys.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to