Android Developer Question: Download Android Developer PDF

What is access data using Content Provider:

Tweet Share WhatsApp

Answer:

Start by making sure your Android application has the necessary read access permissions. Then, get access to the ContentResolver object by calling getContentResolver() on the Context object, and retrieving the data by constructing a query using ContentResolver.query().
The ContentResolver.query() method returns a Cursor, so you can retrieve data from each column using Cursor methods.

Download Android Developer PDF Read All 56 Android Developer Questions
Previous QuestionNext Question
What is activity Context?Tell us how would you update the UI of an activity from a background service?