ContentResolver
. The content resolver provides methods to query(), update(),
insert() and delete() data from a content provider. A request
is made to a content
resolver by passing a URI to one of the SQL-like methods. These
methods return a
Cursor
.
Note
: Cursor is defined and discussed in more detail
in the previous SQLite
chapter. A cursor is essentially a pointer to a row in
a table of structured data
that was returned by the query.
To interact with a content provider via a content resolver there are two basic steps:
1. Request permission from the provider by adding a permission in the manifest.
2. Construct a query with an appropriate content URI
and send the query to the
provider via a content resolver object.
Do'stlaringiz bilan baham: