Code example for ContentValues

Methods: clearput

0
        ); 
        db.execSQL("CREATE INDEX lookup_feature ON feature(" +
                   "ver ASC, _id ASC)"); 
 
        // insert a default identity 
        ContentValues values = new ContentValues();
        values.put("category", "client");
        values.put("type", "phone");
        values.put("name", "asmack service");
        db.insert("identity", "_id", values);
 
        // and support caps/disco#info. 
        // we can't reach this block otherwise :-) 
        values.clear();
        values.put("ver", "http://jabber.org/protocol/caps");
        db.insert("feature", "_id", values);
        values.put("ver", "http://jabber.org/protocol/disco#info");
        db.insert("feature", "_id", values);
    } 
 
    /** 
     * Called when there is a database update. 
Contextual code suggestions in your IDE  Get Codota for Java