public void copyAssertFile() {
AssetManager manager = getResources().getAssets();
try {
byte[] buf = new byte[1024];
InputStream is = manager.open("config.txt");
FileOutputStream fos = new FileOutputStream(Utils.PATH_CONFIG_FILE);
int ret = 0;
while ((ret = is.read(buf)) != -1) {
fos.write(buf, 0, ret);
}
is.close();
fos.close();
} catch (Exception e) {
e.printStackTrace();
}
}