I have a view in which I am inserting data in a background thread to sqlite database coming from server. Now when user taps and navigate to another view in which I have to read the contents from this database, but I am not able to fetch the contents as the database is already open in background thread of last view and it gives error "database is locked".
NOTE: both the operations are in different Tables i.e I am writing in different table and reading from other table.
Does sqlite support multi threading, If yes then how can I remove the lock from database?