How can i get list of all pdf files stored in android?

I’m trying to create a view which displays a list of all pdf files stored in internal and external storage of android device. How can I do it?

This doesn’t sound like an issue concerning Framework7. You should post the question at for more broader enquires.

I actually tried looking it on stackoverflow, but no one seems to encounter this problem even though it’s a general, maybe i need to make a plugin myself for this operation