【发布时间】:2014-04-18 17:23:52
【问题描述】:
我想将我的图像存储在 sdcard 子文件夹中。我已完成以下操作,但我的图像没有存储在子文件夹中。如何将图像保存在子文件夹中? 我的代码如下:
final File wallpaperDirectory = new File("/sdcard/Wallpapertask/");
wallpaperDirectory.mkdirs();
myImageView1.setImageBitmap(circleBitmap);
BitmapDrawable drawable = (BitmapDrawable)myImageView1.getDrawable();
Bitmap bitmap = drawable.getBitmap();
File sdCardDirectory = Environment.getExternalStorageDirectory();
File image = new File(sdCardDirectory, "test2.png");
【问题讨论】:
标签: android bitmap android-sdcard