我正在尝试让我的 ContentResolver 运行此查询:
select * from myTable limit 1 offset 2
ContentResolver 中唯一的查询方法是:
resolver.query(uri, projection, selection, selectionArgs, sortOrder);
我试过了:
final Cursor c = resolver.query(
MyTable.CONTENT_URI,
MyTable.PROJECTION,
" ? ?",
new String[] {"1", "2"},
null);
这只会引发 IllegaLArgumentException。实现这一目标的正确方法是什么?