我可以在使用保存圖片在磁盤:Android的磁盤上保存的照片在隱私模式
String baseDir = Environment.getExternalStorageDirectory().getAbsolutePath();
String fileName = imageId + ".png";
String filePath = baseDir + File.separator + fileName;
File file = new File(filePath);
if(!file.exists())
{
out = new FileOutputStream(baseDir + File.separator + fileName);
bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
}
但保存的所有圖片都在手機的畫廊可見..我怎樣才能隱藏起來給用戶?有我的appliaction私人文件夾?
感謝
請看這裏http://stackoverflow.com/questions/10782187/how-to-encrypt-file-from-sd-card-using-aes-in-android –