Make sure your Android application has the required 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.
Accessing data is one of the tasks that are most likely to block the main thread, so the developer should stress the importance of performing data queries on a separate thread.
Regards,
Nitesh Bavishiya