Back to project page surveygcp.
The source code is released under:
GNU General Public License
If you think the Android project surveygcp listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.droidplanner.gcp.file; // ww w .j ava2 s . c om import java.io.File; import java.io.FilenameFilter; public class FileList { static public String[] getKMZFileList() { FilenameFilter filter = new FilenameFilter() { public boolean accept(File dir, String filename) { return filename.contains(".kml") || filename.contains(".kmz"); } }; String gcpPath = DirectoryPath.getGCPPath(); return getFileList(gcpPath, filter); } static public String[] getFileList(String path, FilenameFilter filter) { File mPath = new File(path); try { mPath.mkdirs(); if (mPath.exists()) { return mPath.list(filter); } } catch (SecurityException e) { } return new String[0]; } }