.Context.MODE_WORLD_WRITEABLE模式创建的文件不可以被其他应用读取,但是可以被其他
应用写入:
-----------------------
测试代码:
public void testAccessReadWriteable() throws Throwable{
String TAG="testAccessAppend";
String path="/data/data/com.credream.file/files/writeable.txt";
File file=new File(path);
ByteArrayOutputStream outputStream=new ByteArrayOutputStream();
FileInputStream inputStream=new FileInputStream(file);
byte[] buffer=new byte[1024];
int len=0;
应用写入:
-----------------------
测试代码:
public void testAccessReadWriteable() throws Throwable{
String TAG="testAccessAppend";
String path="/data/data/com.credream.file/files/writeable.txt";
File file=new File(path);
ByteArrayOutputStream outputStream=new ByteArrayOutputStream();
FileInputStream inputStream=new FileInputStream(file);
byte[] buffer=new byte[1024];
int len=0;