Local Service communicating with its Activity

Put your problem here if it does not fit any of the other categories.

Local Service communicating with its Activity

Postby tsucheck » Tue Mar 11, 2008 9:09 pm

Hi Guys,

Just wanted your take on this. I would like to have an activity create a service when user decides and then from that point on when user exits the service would stay around. If user relunches the activity it would "connect" with the already running service. For Activity communicating with the service I can use startService method which will invoke the onStart service method. So that takes care of Activity to service communication. What about the other way around. Any suggestions? In the examples I see the remote service binding but is this the only way. And since the activity is local with the service would there be a simpler method. Lastly if I relunch the activity would it still be running in the same process as the service or is it at that point in its own process.

Any thoughts you might have are appreciated.

Thanks.

Tom
tsucheck
Developer
Developer
 
Posts: 29
Joined: Sun Feb 17, 2008 2:07 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 17 guests