Android data access
With any platform, there are multiple ways to access data, from built-in facilities to homegrown APIs. Android is no different, so while you can write your own way to load data from some arbitrary data source, unless you have very particular requirements, there is often no need, as Android has a system built in--the ContentProvider.
The Android documentation will tell you that a content provider manages access to a central repository of data, and that it offers a consistent, standard interface to data that also handles inter-process communication and secure data access. If you intend to expose your application's data to external sources (either for read or write), ContentProvider is a great way to go. However, if you don't ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access