10Content Providers and Search
INTRODUCING CONTENT PROVIDERS
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 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.