加载geodatabase数据
private FeatureLayer valueFL;
//离线数据图
@Override
public void getLocalMapServerDiFangData(){
try {
List<File> list=null;
if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())){
File file=Environment.getExternalStorageDirectory().getAbsoluteFile();
File file1=new File(file,Constant.LOCAL_DATA);
if (file1.exists()){
list=Arrays.asList(file1.listFiles(new FilenameFilter() {
@Override
public boolean accept(File dir, String name) {
return name.endsWith("geodatabase");
}
}));
}
}
if (list==null||list.size()==0){
messageDialog("请在手机SD卡根目录下localdata文件架下放入geodata