10Content Providers and Search


In this chapter you learn how to create and use Content Providers as a consistent way to share, and consume structured data within and between applications by providing an abstraction from the underlying data storage technique.

You see how to query Content Providers asynchronously using Cursor Loaders, to ensure your application remains responsive while you retrieve data.

In Android, access to a database is restricted to the application that created it, so Content Providers offer a standard interface your applications can use to share data with, and consume data from, other applications—including many of the native databases.

Content Providers are used extensively ...

Get Professional Android, 4th Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.