Thursday, March 31, 2011

[android-developers] Re: Android sqlite and multithreading

If you plan on using threads to access a database, then I believe there is no other way to alleviate the exceptions being thrown except with some sort of synchronization like you have. I do the same sort of things with my databases and use semaphores to ensure exclusivity of my database.

As to your question: "How do you use sqlite in Android?" -- I would say that if you're already accessing your database from different threads with no exceptions being raised, then you already know more than the average bear.

Nick

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate