When String[] ids
has one argument, query return data, when more then one, get error:
Cannot bind argument at index X(number of arguments) because the index is out of range.
The statement has 1 parameter.
Cursor cr = ctx.getContentResolver().query(
MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
null,
"_id = ?",
ids,
orderBy
);