I'm looking forward to find an activity that can list and than choose all file of a certain type... this is qhat i have:
File dir = new File(".");
String[] names = dir.list(new FilenameFilter(){
public boolean accept(File dir, String name)
{
return name.endsWith(".mp3");
}
});
until this moment it can only list the file of a certain extension. how can i use this list to make a file choose? and how can i include in this list all audio file and not only .mp3? it would be great to find a library that do so...
If you want to create a file explorer than there is a Open source sample. This open source will only show you folders and files with extension you are willing to search
Below is the URL for the same:
This might solve your problem.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.