The documentation on Android content providers describes using a ContentResolver
, obtained from getContentResolver()
, to access the content.
Ok, but be aware that it works only when ContentProvider running in this same process as Activity.
Note from documentation for method getLocalContentProvider()
:
If the ContentProvider is running in a different process then null will be returned. This can be used if you know you are running in the same process as a provider, and want to get direct access to its implementation details.