9.8 AddressBookContentProvider
Class
The AddressBookContentProvider
subclass of ContentProvider
defines how to perform query
, insert
, update
and delete
operations on this app’s database.
Error-Prevention Tip 9.1
ContentProvider
s can be invoked from multiple threads in one process and multiple processes, so it’s important to note that ContentProvider
s do not provide any synchronization by default. However, SQLite does synchronize access to the database, so in this app it’s unnecessary to provide your own synchronization mechanisms.
9.8.1 AddressBookContentProvider
Fields
Class AddressBookContentProvider
(Fig. 9.18) defines several fields:
Get Android How to Program, 3/e 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.