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