Working with content providers

We spoke briefly about content providers as Android components in Chapter 2, Building an Android Application - Tetris. While doing so, we established the fact that content providers help an application control access to data resources stored either within the application or within another app. In addition, we established that a content provider facilitates the sharing of data with another application via an exposed application programming interface.

A content provider behaves in a way that is similar to the behavior of a database. A content provider permits the insertion, deletion, editing, updating, and querying of content. These abilities are permitted by the use of methods such as insert(), update(), delete() ...

Get Kotlin Programming By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.