hello mark,
thanks for the help now its working fine
thank you once again
regards
rakesh
On Sep 10, 5:47 pm, "Payal Amin" <[EMAIL PROTECTED]> wrote:
> you can try this
>
> FileContains = new File(PathName);
> File[] Filenames = FileContains.listFiles(
>
you can try this
FileContains = new File(PathName);
File[] Filenames = FileContains.listFiles(
new FilenameFilter() {
public boolean accept(File FileContains, String name) {
return name.endsWith(".mp3") || name.endsWith(".MP3");
}
});
Payal
patelpower wrote:
> thanks, but i am trying that java.io.file but its giving whatever
> files in the SDcard whether it could be .txt etc. but i need only mp3
> files list so if u have any idea than let ne know..
In my previous response, I wrote:
"Look in the java.io package. You probably want F
Hi mark,
thanks, but i am trying that java.io.file but its giving whatever
files in the SDcard whether it could be .txt etc. but i need only mp3
files list so if u have any idea than let ne know..
my code is loke this
private File FileContains;
FileContains = new File(PathName
patelpower wrote:
> Hello everyone,
>
> i want to read the mp3 files only from the sdcard so is there any API
> so it could read only mp3 files and give the list of the files indise
> the SDcard
Look in the java.io package. You probably want File#listFiles(), perhaps
one of the flavors that ta
5 matches
Mail list logo