private File[] getApkFileList(String path) {
        //System.out.println("Getting the list of files to be analyzed...");
        File file = new File(path);
        File[] listOfFiles;
        if (file.isFile()) {
            listOfFiles = new File[]{file};
        } else {
            listOfFiles = file.listFiles(new FileFilter() {
            @Override
            public boolean accept(File file) {
                return file.getName().endsWith(".apk");
            }});
        }
        
        return listOfFiles;
    }