1,判断文件在包下是否存在
private boolean isFileExisted() {
if (new File("/data/data/" + this.getPackageName()
+ "/command/command.dic").exists()) {
return true;
}
return false;
}
2,创建哪些文件;(command.dic,command.lm以及后面几个文件都在我eclipse工程的assert目录下,2.2工程单个文件不能超过1M,2.2以上无大小限制)
private void createCommandFile() {
Log.i(TAG, "createFile()...");
String strPath = "/data/data/" + this.getPackageName() + "