Good day, i am trying to return images from different specific folders in an SD Card through a MediaStore Query. So far, i can successfully query for a single folder but am getting stuck in how to do it for multiple folders. code is like this:
cursor = getContentResolver().query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, img,
MediaStore.Images.Media.DATA + " like ? ", new String[]{"%" + "dcim" + "%"}, null);
i tried constructing something like this and other similar queries, but its not working:
cursor = getContentResolver().query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, img,
MediaStore.Images.Media.DATA + " like ? ", new String[]{"%" + "dcim" + "%","%" + "downloads" + "%" }, null);
please any help will be appreciated. Thank you.