Code example for ContentValues

Methods: getAsString

    public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId,
            ContentValues values) {
        String company = values.getAsString(Organization.COMPANY);
        String title = values.getAsString(Organization.TITLE);
        long dataId = super.insert(db, txContext, rawContactId, values);
        fixRawContactDisplayName(db, txContext, rawContactId);
        return dataId;
    public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values,
            Cursor c, boolean callerIsSyncAdapter) {
        if (!super.update(db, txContext, values, c, callerIsSyncAdapter)) {
            return false; 
Connect your IDE to all the code out there  Get Codota for Java