[android-developers] Re: Database shared by Activity and Service. What's the best approach?

2011-04-17 Thread bogde
about performance, and all you are doing is reading two values and writing them over time, just appending this as binary data to a file would be far, far more efficient than using a SQLite database. On Sat, Apr 16, 2011 at 1:10 PM, bogde bogde...@gmail.com wrote: Thanks for the suggestion. I

[android-developers] Re: Database shared by Activity and Service. What's the best approach?

2011-04-16 Thread bogde
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

[android-developers] Re: Content P

2011-04-16 Thread bogde
I'm new to Android too, but recently wrote a content provider. Make sure the class SubscribeContentProvider.java is in the package com.providers Good luck! Bogdan On Apr 14, 11:39 pm, Android K interconnectt...@gmail.com wrote: Hi, With my one week old knowledge of Android I am trying use

[android-developers] Re: Database shared by Activity and Service. What's the best approach?

2011-04-15 Thread bogde
12, 2011 at 5:32 PM, bogde bogde...@gmail.com 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

[android-developers] Database shared by Activity and Service. What's the best approach?

2011-04-13 Thread bogde
I'm new here and new to Android development too, so I want to apologize for my ignorance. I'm working on an application that is supposed to gather some data from an external device continuously, display the data on a chart in real-time and also store data so it's accessible at a later time as a