On Sat, Aug 28, 2010 at 3:53 AM, Ravi Grandhi <[email protected]> wrote: > How to pass a String from an activity to a service?
Attach it as an extra to the Intent being used with either startService() or bindService(). The service can then access the extra via the Intent passed to onStart() or onBind(), respectively. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en

