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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which mechanism conducts the querying of the Content Provider?

A

The Content Resolver.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What arguments doe query take>

A

query(Uri, projection, selection, selectionArgs, sortOrder);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly