I have a service(A) that binds to service(B).  Service A calls the
bind method in the onHandleIntent and because the bind method is
asynchronous before the onServiceConnected method is started the
onDestroy for service A is called.  Now the methods I need to call
from service B depend on the intent passed into service A.  So what I
did was store the intent as a member variable in service A.  What
confuses me is that in the onServiceConnected, I still have access to
the intent object.  Another thing that confuses me is that in the
onDestroy I also call the unbind method.  So if I'm no longer bound to
service B, how am I able to call service B methods?  Is it because the
unbind method is also asynchronous and is waiting until something is
finished?

Currently the services are doing exactly what I want them to do, which
is service A starts and binds to service B and call methods in service
B using the intent variable from service A.  What concerns me is if
there are any memory leaks with the way I have this set up?

-- 
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to