Fastest way to go through all items in Gallery
<p>I have an app that needs to group photos and videos in the Gallery. Initially, I have to go through all of them. I need to look at the EXIF data for each photo to group them either by location, day or both.</p>

<p>What is the fastest way of doing this?</p>
