how does a service return result to an activity

Viewed 35325

I seem to have a classic task, yet I can't find any examples on how to do it.

I want to download something. Well I call a web service and get a response... but it's pretty much the same.

In order to do this I have an activity that starts a service that spawns a thread that does the job.

Now i would like to use the data I got in the activity that started the service.

(I assume that starting another activity to handle the job of displaying the result would be simple)

My problem is how does the service notify an activity (the one that started it or another one) of something?

Any pointers to examples are much appreciated.

Regards

4 Answers
Related