Hi, why not using Intents, that the natural way to communicate within Android, isn't it? With Intents you can let the service even communicate with activities in other processes without any code change then.
spachner On 3 Apr., 16:38, Kumar Bibek <[email protected]> wrote: > A shortcut method will be, have a static member in your service class. > Keep checking that value, which would be updated or changed from > inside the service. > > Thanks and Regards, > Kumar Bibek. > > On Mar 30, 1:26 pm, T-Droid <[email protected]> wrote: > > > Hi @all, > > > I have a design problem with my Android components. > > > My activity is starting a service which is doing the work in the > > background. What I want is that the service informs the activity about > > state changes. How can I do this? > > > Normally I would add an observer but the activity has no reference to > > the service. Then I was thinking to take AIDL but this is more for > > inter-process communication. > > > How is it possible that the service informs the activity about state > > changes? Both are running in the same process. What can you recommend? > > > Thank you in advance. > > > T-Droid -- 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 To unsubscribe, reply using "remove me" as the subject.

