定义一个ContentValues对象,并赋值:
ContentValues cv = new ContentValues();
cv.put("age", "25");
cv.put("name", "XiaoMing");
遍历ContentValues的办法:
for (Entry<String, Object> item : cv.valueSet()) {
Log.d(TAG, "key: " + item.getKey() + ", value: " + item.getValue().toString());
}