Querying camera images returns only part of them

  • Replies:1
  • OpenNot stickiedUnanswered
  • Forum posts: 1

Aug 1, 2018, 1:37:20 AM via Website

Hey. I am trying to query all images taken by camera and it does work, meaning I do receive only images that were taken by camera. However, I only receive a part of them. So now I have about 400 images taken by camera on my phone and as I query them I only get about 215.
Below is the code I use for the query:

        Cursor cur = contexts[0].getContentResolver().query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,null, MediaStore.Images.Media.BUCKET_DISPLAY_NAME + " = ?",new String[]{"Camera"},MediaStore.Images.ImageColumns.DATE_TAKEN + " desc");

Thanks in advance!