Reputation: 1254
I have a doubt that how Content resolver works, does it uses sqlite database connection implicitly for querying or how does it works and what may be the major difference in using content resolver and sqlite database connection for querying in android?
Upvotes: 1
Views: 276
Reputation: 6009
ContentResolver
is used to select the specific ContentProvider
.
Content Resolver provides an abstraction from the application’s Content Providers, Content Providers provide an abstraction from the underlying data source (i.e. a SQLite database).
ContentResolver --> ContentProvider --> SQLiteDatabase
I found some decent explanation about Content Resolvers & Content Providers
here. It's worth a read. Hope this helps in understanding a bit more about Content Resolvers & Content Providers
Upvotes: 2
Reputation: 14755
Contentprovider/Contentresolver use a modell similar to sql-dabase:
Contentprovider can be easily implemented with a sqLite database.
But Contentprovider can also be implemented without any database.
When to use Contentproviders instead of using the raw database?
Upvotes: 1