[android-developers] Re: SQLiteException: error code 5: database is locked. When accessing ContentProvider from AsyncTask

2013-09-07 Thread Nobu Games
This error can happen when you try to open the same database (file) multiple times. Which in turn can happen when you are using multiple instances of SQLiteOpenHelper. So where do you create the instance of database? On Saturday, September 7, 2013 8:52:44 AM UTC-5, Eurig Jones wrote: Quite

Re: [android-developers] Re: SQLiteException: error code 5: database is locked. When accessing ContentProvider from AsyncTask

2013-09-07 Thread Eurig Jones
I figured it out and yes I was using multiple databases. One per provider. So you're right this is what was causing the issue! :-) On 7 September 2013 20:14, Nobu Games dev.nobu.ga...@gmail.com wrote: This error can happen when you try to open the same database (file) multiple times. Which in