Code example for ContentValues

Methods: clearput

        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.put("ver", "");
        db.insert("feature", "_id", values);
        values.put("ver", "");
        db.insert("feature", "_id", values);
     * Called when there is a database update. 
Stop searching for code, let great code find you!  Add Codota to your java IDE