> I'm trying to do a small, simple program that receives phone status > and updates according... > > I have a service running but I don't know how to connect to it since > no > > ------- > bindService(new Intent(ICallManagerService.class.getName()), > mConnection, Context.BIND_AUTO_CREATE); > ------- > > Can be called. > > I heard about starting a new service but since I cannot pass any > parameters to it I must start and stop a new service each time the > phone status changes... > > What is the best way to do it?
Call startService() with an Intent. The Intent should identify your service, and you should call putExtra() on the Intent to attach any data you need. In the service, implement onStart(), and read the extras off the received Intent. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

