What is the current best way to build a list of images on an Android device? With so many different API's and so many different ways of doing it, I am confused.
I have read about loading them into a cursor object, Media Store, some just plain iterating through folders (with a filter on file type), but nothing seems to work for me.
I essentially want to create a list of all images (or pdfs for example) on the device.
The one consistency is to get Read permission for the internal memory.
I guess what I am asking is, is there any decent (current) tutorials on looping through all folders on the device and adding them to a list / array. I don't mind doing the research / work, but the only stuff I have found is on SO (and most of it is over 6 years old).