【发布时间】:2017-08-19 20:46:28
【问题描述】:
我正在尝试更新我的 DB int cannot be converted to Uri,但没有插入 int 值
insertedUri = getApplicationContext().getContentResolver().update(
pm2_Contract.pm2_MoviesEntry.pm2_buildMoviesUri(100),
locationValues,
"Movie_ID_test",
null);
pm2_buildMoviesUri 返回url的方法:
public static Uri pm2_buildMoviesUri(long id) {
return ContentUris.withAppendedId(pm2_CONTENT_URI, id);
}
locationValues 代码也是:
ContentValues locationValues = new ContentValues();
【问题讨论】:
标签: android sqlite sql-update