Sumit Bhatt
Sumit Bhatt

Reputation: 718

Content Providers method execution

I have used custom ContentProvider, but i am confused about its methods execution.

ContentProvider provide following methods

  1. insert()
  2. update()
  3. delete()
  4. query()
  5. getType()

I have used LoaderManager for background execution of query() method.

Now my question is insert() or update() methods execution is Sychronous or Asynchronous ?

Upvotes: 3

Views: 41

Answers (1)

CommonsWare
CommonsWare

Reputation: 1007124

At the level of a ContentProvider, insert() and update() are synchronous.

At the level of a ContentResolver — which you use for communicating with a ContentProviderinsert() and update() are also synchronous.

Upvotes: 2

Related Questions