Calling method in a service?

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

Calling method in a service?

Postby KennetRose » Wed Feb 09, 2011 1:26 am

I've been looking through the tutorials for mention of binding to services, but haven't really found any - did I miss one?

Google has an example, but it doesn't really mention what to do once you bind. My objective is to bind to a service, pass it a Bundle to work on, then receive a response Bundle once its done (something like having a child thread, but as a single service used by all for synchronization reasons).

I can make the service and bind to it, but when it comes to passing it a bundle (and, on the Service's side, passing anything back), I'm stuck. I get the feeling it's got something to do with overriding the onTransact method in the IBinder, but Google's documentation on that isn't very helpful.

Any thoughts?__________________________
mother of the bride dresses
discount wedding dresses
mother of the groom dresses
Posts: 29
Joined: Thu Dec 23, 2010 7:18 am


Re: Calling method in a service?

Postby strider2023 » Mon Feb 28, 2011 1:36 pm


Try reading this article. Hope you will find it useful. :) ... or_04.html
Senior Developer
Senior Developer
Posts: 126
Joined: Tue Mar 02, 2010 6:34 am
Location: Chennai, India


Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 5 guests