How can I update information in an Android Activity from a background Service

Posted by tmm on Stack Overflow See other posts from Stack Overflow or by tmm
Published on 2010-03-18T10:04:31Z Indexed on 2010/03/18 12:11 UTC
Read the original article Hit count: 494

Filed under:
|
|
|

Hello,

I am trying to create a simple Android application that has a ActivityList of information, when the application starts, I plan to start a Service that will be constantly calculating the data (it will be changing) and I want the ActivityList to be in sync with the data that the service is calculating for the life of the app.

How can I set up my Activity to be listening to the Service? Is this the best way to approach this problem?

For example, if you imagine a list of stock prices - the data would be being changed regularly and need to be in sync with the (in my case) Service that is calculating/fetching the data constantly.

Thanks in advance

© Stack Overflow or respective owner

Related posts about android

Related posts about java