I am trying to list all PDF files which are stored in internal and external memory of Android device using ListView. However,I have no idea now, and the only way I can think of is checking file extension. So would you please give me a hint or suggestion? I really appreciate your help.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How can I create this custom Bottom Navigation on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
Even though this question is from 2011, the topic is still relevant and there's no proper answer here.
So this code below should work on today's Android devices:
This might be what you are looking for: MediaStore.Files