/** 配置地图数据 */ private void configMapData() { String[] datas = MyAssetManager.getInstance().openDir(DataDir); for (String data : datas) { InputStream is = MyAssetManager.getInstance() .open(DataDir + "/" + data); // data is a zip file under DataDir if (is != null) { String zip = MapDataPath + "/" + data; boolean result = FileManager.getInstance().copy(is, zip); if (result) Decompressor.UnZipFolder(zip, MapDataPath); File ziFile = new File(zip); ziFile.delete(); } } }
/** 配置许可文件 */ private void configLicense() { InputStream is = MyAssetManager.getInstance().open(LicenseName); if (is != null) { FileManager.getInstance().copy(is, LicensePath + LicenseName); } }