dimanche 2 août 2015

Android: ContentProvider Request in AsyncTask get delayed when some other ContentProvider operations/sqlite writes are happening

I have a ContentProvider access in a AsyncTask which generally works fine while looking up some data stored in sqlite on the phone.

However I also have some other background services that do network checks and download and update some data.

It is observed that this network related background activity is affecting my ContentProvider. The ContentProvider which entirely works on offline data either delays the response or just never returns for a long time.

Are then any locking/queuing mechanisms on the ContentProvider or the sqlite database? The writes do not happen to the same tables as the reads.

Aucun commentaire:

Enregistrer un commentaire