How can i list all the pdf files present on a device?

I’m creating a pdf viewer app. At the start of app, I want to list all pdf files along with their paths so that when a user clicks on it, it can open the pdf. How can I achieve this in reasonable time as checking each folder recursively is time consuming.