Search code examples
androidandroid-contentprovider

What is a ContentProvider and what is it typically used for?


i'm beginner in android development, need help regarding ContentProvider.

public class My Application extends  ContentProvider {}

Solution

  • A ContentProvider manages access to a structured set of data. It encapsulates the data and provide mechanisms for defining data security. ContentProvider is the standard interface that connects data in one process with code running in another process.

    enter image description here

    Kindly refer following links,

    https://developer.android.com/guide/topics/providers/content-provider-creating.html

    and

    https://www.tutorialspoint.com/android/android_content_providers.htm