O'Reilly logo

Android SQLite Essentials by Vikash Kumar Karn, Sunny Kumar Aditya

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a content provider

A content provider provides access to data in two ways: one is structured data that goes in the form of a database, as the example we are working on currently, or in the form of file data, that is, data that goes in the form of pictures, audio, video, and so on stored in the private space of the application. Before we begin digging into how to create a content provider, we should also retrospect whether we need one. If we want to offer data to other applications, allow users to copy data from our app to another, or use the search framework in our application, then the answer is yes.

Just like other Android components (Activity, Service, or BroadcastReceiver), a content provider is created by extending the ContentProvider ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required