Wrox Programmer Forums
BOOK: Professional Android 2 Application Development
This is the forum to discuss the Wrox book Professional Android 2 Application Development, 2nd Edition by Reto Meier; ISBN: 978-0-470-56552-0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Android 2 Application Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 8th, 2010, 10:48 PM
Registered User
Join Date: Sep 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to start activity by service? liuhero2 BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 0 February 26th, 2009 01:30 AM
ch02 - Binding to a Simple XML Document Tophat BOOK: Beginning ASP.NET 1.0 7 August 17th, 2007 05:09 AM
BINDING DATA WITH SIMPLE CONTROLS saraswathyrajaram ASP.NET 1.0 and 1.1 Basics 13 August 29th, 2006 03:09 PM
Creating a simple .Net service badgolfer VS.NET 2002/2003 0 March 31st, 2004 04:29 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.