How can we write simultaneously multiple time in sqlite3 database in android
if I am performing a database operation from an activity and at same time if my android service starts (Which also perform database insertion) then how to handler the database operation.
as android developer website says
http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#setLockingEnabled%28boolean%29
that SetLocakingEnabled ” method is deprecated“.
So how we can access multiple write(insertion) operation in Database.
I also referred to the documentation of sqlite for locking
http://www.sqlite.org/faq.html#q5
please provide any example for the same .
Thanks
I’m not sure what you mean by multiple write access. But what you probably want to do is lock the database with a transaction and perform your inserts, then when complete end the transaction.