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 On Apr 14, 7:58 am, gjs <[email protected]> wrote: > Hi, > > +1 contentprovider. > > This thread is possibly worth reading - > > http://groups.google.com/group/android-developers/browse_thread/threa... > > Regards > > On Apr 14, 2:22 pm, Nikolay Elenkov <[email protected]> wrote: > > > On Tue, Apr 12, 2011 at 5:32 PM, bogde <[email protected]> wrote: > > > My question is, what would be the best way to > > > accomplish this? How to "share" the database between the service that > > > runs all the time and an activity? > > > Content provider? -- 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

