hpique
hpique

Reputation: 120324

Service with listeners in Android

I want to implement an Android Service that periodically downloads data and notifies various listener activities that the data has been updated.

There seems to be various way of communicating with a Service. What's the simplest and best way to do the above? A code example or a tutorial will be greatly appreciated.

Upvotes: 0

Views: 3421

Answers (1)

techi.services
techi.services

Reputation: 8533

Have a look at the EarthquakeViewer samples from http://www.wrox.com/WileyCDA/WroxTitle/Professional-Android-2-Application-Development.productCd-0470565527,descCd-DOWNLOAD.html.

It shows how to use an AlarmManager in the Chapter 9 samples.

Upvotes: 2

Related Questions