- Forum posts: 1
Aug 1, 2018, 1:37:20 AM via Website
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!
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.