Code example for ContentValues

Methods: clearputsize

0
     * @param lastName The last name of the contact - can be null if fullName 
     *      is specified. 
     * @return instance of ContactOperations 
     */ 
    public ContactOperations addName(String fullName, String firstName, String lastName) {
        mValues.clear();
 
        if (!TextUtils.isEmpty(fullName)) {
            mValues.put(StructuredName.DISPLAY_NAME, fullName);
            mValues.put(StructuredName.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE);
        } else { 
            if (!TextUtils.isEmpty(firstName)) {
                mValues.put(StructuredName.GIVEN_NAME, firstName);
                mValues.put(StructuredName.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE);
            } 
            if (!TextUtils.isEmpty(lastName)) {
                mValues.put(StructuredName.FAMILY_NAME, lastName);
                mValues.put(StructuredName.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE);
            } 
        } 
        if (mValues.size() > 0) {
            addInsertOp(); 
        } 
        return this;
    } 
 
Connect your IDE to all the code out there  Get Codota for Java