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!

Reply
  • Forum posts: 1,299

Aug 1, 2018, 1:56:43 PM via Website

Are you sure that all these 400 images are stored in one folder? Are they in the internal storage or a SD card?

Download size < 0.07 MB. But also Accurate, Ad-Free & Full-Free.
The minimalist app available on Google Play https://goo.gl/ws42fN
Your 5-star is appreciated. Blog : https://okblackcafe.blogspot.com

Helpful?
Reply
Recommended by NextPit