我有一个存储在字符串中的图像路径:
if(uri != null) {
Cursor cursor = getContentResolver().query(uri, new String[] {
android.provider.MediaStore.Images.ImageColumns.DATA},
null, null, null);
cursor.moveToFirst();
String image = cursor.getString(0);
cursor.close();
如何将此字符串插入/检索到该数据库中/从该数据库中检索?
private static final String DATABASE_CREATE =
"create table " + DATABASE_TABLE + " ("
+ KEY_ROWID + " integer primary key autoincrement, "
+ KEY_IMAGE + " text not null)";