public void selectAllFiles(boolean select){
  AbsListView listView=(AbsListView)getListView();
  for (int position=0; position < listView.getCount(); position++) {
    File file=(File)mAdapter.getItem(position);
    if (file.isFile()) {
      listView.setItemChecked(position,select);
    }
  }
}

public void selectAllFiles ( boolean select ) { AbsListView listView = ( AbsListView ) getListView ( ) ; for ( int position = 0 ; position < listView . getCount ( ) ; position ++ ) { File file = ( File ) mAdapter . getItem ( position ) ; if ( file . isFile ( ) ) { listView . setItemChecked ( position , select ) ; } } }
de - / select all elements in the local file list .
