I have a database with some tables.
I want to update the tables using multiple threads.
I will use same instance of SQLiteDatabase in all threads.
Please suggest if this approach is correct.
Is Sqlite database threadsafe?
Can two different threads update same table for different set of values at same time.
[WRONG: Please see answers below]
No, it is not thread-safe by default. You shoud use locking-related SQLiteHelper methods to provide thread safety.
Search for ‘thread’ in this document: http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html
And read more on: