Querying camera images returns only part of them

  • Replies:1
Tomer
  • 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
James Watson
  • Forum posts: 1,584

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.15 MB. But also accurate enough, ad-free & free.
The minimalist app available on Play Store: https://goo.gl/ws42fN
Blog: https://okblackcafe.blogspot.com Your 5-star is appreciated.

Helpful?
Reply