O'Reilly logo

Mastering Android Application Development by Antonio Pachón Ruiz

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

Content providers

A content provider is very similar to the concept of a DAO; it is an interface between the data and the app that allows different apps to exchange information. We can decide whether we want it to be public or not, whether we want other apps to be able to get data from it, and whether it will only be used internally in our app. The data can be stored in a database such as the one we are about to create. It can be stored in files; for instance, if we want access to videos or pictures from the gallery, we'll use an Android built-in media content provider. Alternatively, it can be obtained from the network:

Content providers

A content provider must be ...

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