public void deleteFile(File file){
  int fileType;
  if (file.isDirectory())   fileType=FOLDER;
 else   fileType=FILE;
  AsyncDeleteTask task=new AsyncDeleteTask(getActivity(),this,file,fileType);
  task.execute();
}

public void deleteFile ( File file ) { int fileType ; if ( file . isDirectory ( ) ) fileType = FOLDER ; else fileType = FILE ; AsyncDeleteTask task = new AsyncDeleteTask ( getActivity ( ) , this , file , fileType ) ; task . execute ( ) ; }
deletes the specified file .
