Content Provider: Reading from a Content Provider Flashcards
1
Q
What are the 2 general steps for accessing and interacting with a Content Provider?
A
- Request read access permissions.
- Query the provider.
2
Q
Which tag do we use to get permission to read another provider? Give an example of requesting permission to a provider with the permission name ‘UserDictionary’…
A
<uses-permission></uses-permission>
3
Q
Which mechanism conducts the querying of the Content Provider?
A
The Content Resolver.
4
Q
What arguments doe query take>
A
query(Uri, projection, selection, selectionArgs, sortOrder);
5
Q
Define what a Cursor object is…
A
A cursor object references a subsection of a data source that was queried. The Cursor has methods in order to operate on the referenced data.