Code example for File

Methods: listFiles

0
        } 
 
    } 
 
    protected List<File> findAllImageFiles() {
        return Arrays.asList(assetsDir.listFiles(filter));
    } 
 
    protected File findBiggestImageFile() {
        List<File> allImages = findAllImageFiles();
        if (allImages.isEmpty())
            return null; 
 
        Collections.sort(allImages, comparator);
 
        // copy only images that are bigger than x bytes 
        List<File> allImages2 = new ArrayList<File>(allImages.size());
 
        for (File file : allImages) {
            if (file.length() > getMinSizeInBytes()) {
                int height = -1;