Two values? Service running all the time?
Just put them into static variables accessible from both your Service and Activity classes. Back up into shared preferences or a file, so you can reload the latest values if/when the service/process is killed.
-- Kostya 14.04.2011 11:17, bogde пишет:
Thank you both for taking the time to reply. I read about ContentProvider and also read the thread you gave me. It definitely looks like CP is the best approach for me. So I will have the service write data to the database via CP, and the Activity will use CP to display data. I wonder if this adds any unneeded overhead to the whole application. The application runs on a WM8505 based Chinese tablet with only 128 MB of RAM. The purpose of the entire hardware and software is to record and display two values. I really hope the hardware is good enough for the requirements. Thanks again! Bogdan
-- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

