You can use File apis as follows
  File f=new File("/sdcard");
       if(f.isDirectory()){
         String files[]=  f.list();
         for(int i=0;i<files.length;i++){
                 Log.d("",files[i]);

         }

And identify your file and construct file path and delete
On Sep 16, 11:56 am, cindy <[email protected]> wrote:
> ANy example to use the api? I am confused.
>
> On Sep 15, 11:26 pm, Vinay S <[email protected]> wrote:
>
> > Pl. look 
> > athttp://developer.android.com/reference/java/io/FilenameFilter.html
>
> > On Sep 16, 8:40 am, cindy <[email protected]> wrote:
>
> > > Hi all,
>
> > >  My application needs to do some clean up. I need to list the files
> > > such as  " ls voice*.amr", and then delete those files. How could I do
> > > it in Android?
>
> > > Thanks !
>
> > > Cindy
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to