'Cannot bind argument at index 1 because the index is out of range. The statement has 0 parameters. when using content resolver query android
i was trying to return all the songs from an album using the album id this is the code its saying i hace 0 peramiters but i have one ? place holder
String[] selectionArgs = {
"123"
};
Cursor audioCursor = context.getContentResolver().query(
MediaStore.Audio.Media.EXTERNAL_CONTENT_URI,
new Projections().songProjection(),
MediaStore.Audio.Media.ALBUM_ID + " like ?",
selectionArgs,
null);
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
