在SD卡中写下文件

在SD卡中写入文件// create a File object for the parent directoryFile fileDirectory new File(Envir

在SD卡中写入文件

// create a File object for the parent directory

File fileDirectory = new File(Environment.getExternalStorageDirectory()+"/filexxxx");?

?

// have the object build the directory structure, if needed.

fileDirectory.mkdirs();

?

File file = new File(?fileDirectory.getAbsolutePath(),filename );

?

FileOutputStream fos = new FileOutputStream(file);