How to figure out home many photos are the in the galllery
I'm trying to figure out that how many photos are there in the gallery of
the phone. I've tried to use MediaStore.Images.Media._COUNT .
Unfortunately, it's not working as expected. when I use
System.out.println("count of photos: " + MediaStore.Images.Media._COUNT);
to check the value of it, it's just shown as "count of photos: _COUNT" in
the console. So how can I get the right count of the photos in the
gallery? Can anyone help me?
No comments:
Post a Comment