How to display files on the SD card in a ListView?
问题 I would like to create a button that when clicked will go to a class that displays all media files from an SD card using a ListView . After selecting from the list it will then return the filename selected to the main class. IF the returned file is an image file, it will be displayed in an ImageView and if the returned file is an audio file, it'll just display an icon. 回答1: Add a Method GetFiles() to your program. Call it to get an ArrayList<> of all the files. You can then use it to populate