I am working on adding some app widgets to my app.  I have a few
questions relating to this:

Both the widgets and the app access the same SQLite database.  What do
I need to be aware of as far as concurrency is concerned.  Is this
even an issue?  In other words, does the widget's onUpdate() method
run on the same thread as the app's main thread?

Even if the above answer is "yes", I do have some long running
operations that's updating the database running in seperate threads.
If the onUpdate() is called while the long running operation is
executing, when I try to open the database even for reading, I would
fail.  How would I handle this situation?

Thanks for any pointers or links to past threads or blogs where
something like this had been discussed.

-- 
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

Reply via email to