kandz.me
<span>Content Provider – Part 2 – create and query</span>
You can read part 1 here. To create a Content Provider you need to: extend the ContentProvider classimplement the lifecycle methods implement the data lookup methodsimplement the modification methodscreate a Content Provider identificationspecify Content Provider's visibility to other apps Content Provider is responsible to connect to the database and perform all the database interactions. The methods are similar to the SQLite API. Add a Content Provider to your app Right-click the package name, then click New, Other and then Content Provider. You will see the following window: Specify the class name and the URI authorities which is the app package name and