最近在做文件管理器的时候,有复制文件的功能,记录下下次方便用,如下
public int copySdcardFile(String fromFile, String toFile) {
try {
InputStream fosfrom = new FileInputStream(fromFile);
OutputStream fosto = new FileOutputStream(toFile);
最近在做文件管理器的时候,有复制文件的功能,记录下下次方便用,如下
public int copySdcardFile(String fromFile, String toFile) {
try {
InputStream fosfrom = new FileInputStream(fromFile);
OutputStream fosto = new FileOutputStream(toFile);