Instead of repeatedly hitting the database to see if something is available, you could find some way for the service to send the new datum to the application when it is received from the external device. I think this could be achieved with an explicit intent. This allows the application to only update the chart when a new data point is available, but does not require the application to repeatedly poll a database (application is the observer in the observer design pattern here). The service would still store the data to persistence (SQLite database for now or binary file later as Dianne recommended).
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en