[android-beginners] Re: Files reading

2008-09-11 Thread patelpower
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( >                                          

[android-beginners] Re: Files reading

2008-09-10 Thread Payal Amin
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

[android-beginners] Re: Files reading

2008-09-10 Thread Mark Murphy
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

[android-beginners] Re: Files reading

2008-09-10 Thread patelpower
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

[android-beginners] Re: Files reading

2008-09-10 Thread Mark Murphy
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