Using a ContentProvider

PDF for offline use

Let us know how you feel about this

Translation Quality


last updated: 2018-02

CursorAdapters can also be used to display data from a ContentProvider. ContentProviders allow you to access data exposed by other applications (including Android system data like contacts, media and calendar information).

The preferred way to access a ContentProvider is with a CursorLoader using the LoaderManager. LoaderManager was introduced in Android 3.0 (API Level 11, Honeycomb) to move blocking tasks off the main thread, and using a CursorLoader allows the data to be loaded in a thread before being bound to a ListView for display.

Refer to Intro to ContentProviders for more information.

Xamarin Workbook

If it's not already installed, install the Xamarin Workbooks app first. The workbook file should download automatically, but if it doesn't, just click to start the workbook download manually.