Reputation: 120324
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
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