Code example for ContentValues

Methods: getAsString

0
 
    @Override 
    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;
    } 
 
    @Override 
    public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values,
            Cursor c, boolean callerIsSyncAdapter) {
        if (!super.update(db, txContext, values, c, callerIsSyncAdapter)) {
            return false; 
        } 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE