Content Provider – Part 2 – create and query

Content Provider – Part 2 – create and query

You can read part 1 here. To create a Content Provider you need to: extend the ContentProvider class implement the lifecycle methods implement the data lookup methods implement the modification methods create a Content Provider identification specify 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…

Content Provider – Part 2 – create and query Read More