Code example for ContentValues

Methods: getAsString

    public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId,
            ContentValues values) {
        String nickname = values.getAsString(Nickname.NAME);
        long dataId = super.insert(db, txContext, rawContactId, values);
        if (!TextUtils.isEmpty(nickname)) {
            fixRawContactDisplayName(db, txContext, rawContactId);
            mDbHelper.insertNameLookupForNickname(rawContactId, dataId, nickname);
            triggerAggregation(txContext, rawContactId);
        return dataId;
    public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values,
            Cursor c, boolean callerIsSyncAdapter) {
Connect your IDE to all the code out there  Get Codota for Java