Code example for File

Methods: list

0
            Option option = adapter.getItem(position);
            if (option.getName().equals(PARENT_DIR)) {
                currentDir = new File(option.getPath());
                fill(currentDir);
            } else { 
                File dir = new File(option.getPath());
                if (dir.list(new DirOnlyFilenameFilter()).length > 0) {
                    currentDir = dir;
                    fill(currentDir);
                } 
            } 
        } 
    } 
 
    public class OnCheckBoxClickListener implements OnClickListener {
        private int position;
 
        OnCheckBoxClickListener(int position) {
            this.position = position;
        }