sd卡创建目录

File wallpaperDirectory = new File("/sdcard/Wallpaper/");  
wallpaperDirectory.mkdirs();  
File outputFile = new File(wallpaperDirectory, filename);  
FileOutputStream fos = new FileOutputStream(outputFile); 

File wallpaperDirectory = new File("/sdcard/Wallpaper/");
wallpaperDirectory.mkdirs();
File outputFile = new File(wallpaperDirectory, filename);
FileOutputStream fos = new FileOutputStream(outputFile);

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

你可能感兴趣的:(创建)