p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional Android 2 Application Development (http://p2p.wrox.com/forumdisplay.php?f=547)
-   -   binding service to an activity, simple example? (http://p2p.wrox.com/showthread.php?t=81182)

dan77062 October 8th, 2010 10:48 PM

binding service to an activity, simple example?
Is there a simple example of binding a service to an activity? The code snippets (Chapter 9 Listing 9-5 and 9-6) are really unclear. I can't even figure out which snippet goes in the service and which goes in the activity.

I have a broadcast receiver that starts a service and I'd like to bind to that service with an activity that allows the user to see some data from the service when they choose to have the activity in the foreground.

Sounds fairly simple, but I keep getting runtime errors and I need a simple example to get it straight.


All times are GMT -4. The time now is 02:44 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.