546 CHAPTER 14: Android Content Providers: Providing Data to Applications
Next, you are going to use the rawContactsId long data value to put all of this Viceroy name data
into the Data database using the RAW_CONTACT_ID key (_ID) constant. You will again use the
.put( ) method, called off of your viceroyContact ContentValues object, as shown in Figure 14-41.
Now the Viceroy is loaded in the data table.
Figure 14-41. Call the .clear( ) method and the .put( ) method off of a viceroyContact object. Import the Data class
Use another .put( ) method call to load the Data.MIMETYPE data field with the CONTENT_ITEM_TYPE
MIME type using the StructuredName class, as shown in Figure 14-42. Mouse over and import this
class for use.