The activity could pass a reference to itself in the call to start the service, which the service can then call when things change.
-----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Mateusz Sent: Tuesday, June 10, 2008 5:54 AM To: Android Beginners Subject: [android-beginners] Return result from a service Hi guys, Let's take a simple application. The activity starts a service, e.g. playing a song. The GUI should be changed when the song has ended, for example Stop button should change to Play again. Therefore, the service has to somehow return some information (when it finished playing the song) to the activity. How? --~--~---------~--~----~------------~-------~--~----~ 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] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

