You can pass information via the Intents used to start the service, and vice versa, with the various put and get methods on Intent.
For more information, see this link: http://developer.android.com/resources/faq/framework.html#3 ---------------------------------------------------------------------- There are only 10 types of people in the world... Those who know binary and those who don't. ---------------------------------------------------------------------- On Sun, Aug 1, 2010 at 2:30 PM, Rajesh Bachani <rajesh.bach...@gmail.com>wrote: > Hello friends! > > I am trying to explore how information can be exchanged between > activities and services. > So, if we have Activity A and a Service S is started from A, using the > startService() method - is there a way to pass parameters to the > Service - and also receive values from the Service into the Activity > once the stopService() method is called? > > I am using Intent to start the service, as one would expect. > > And further what is the advantage of calling the onBind method, as > opposed to the onStart(). > > Thanks, > Rajesh. > > -- > You received this message because you are subscribed to the Google > Groups "Android Beginners" group. > > NEW! Try asking and tagging your question on Stack Overflow at > http://stackoverflow.com/questions/tagged/android > > To unsubscribe from this group, send email to > android-beginners+unsubscr...@googlegroups.com<android-beginners%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-beginners?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For more information about this change, please read [http://goo.gl/xkfl] or visit the Group home page. Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en