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.