Prajkti Khadse wrote: I want to retrieve all the Video and Audio files present on the sdcard and display them in GridView along with their Name and Icon.
Can you please make it more clearer? I have several questions base on it.
1. Are you storing Audio/Video only or storing images also inside SDcard??
2. Do you want to display them in their default icons?? (As FileSystemView works in Java).
3. Do you want to display them like Windows file system displays in Thumbnail preview?
We can have more idea if we can come to know how android itself display those Audio/Video files on SD card.
If I am not making any misunderstanding, you want to display their default icons like FileSystemView in Java (My 2nd question).
AFAIK there is no way to display file system view/icon in android. You can display user defined icons with particular file type.
Please have a look at this URL In this URL all files are filtered according to type, if you want to display it inside a list then you have to change your logic.