update android image gallery with newly created bitmap
问题 I'm trying to save an image file to external storage. I can save the picture to the sdcard but it doesn't show up in Androids gallery application. I've tried this approach: File path = Environment.getExternalStorageDirectory(); File f = new File(path + "/mydirectory/" + imageName + "_" + System.currentTimeMillis() + ".jpg"); FileOutputStream fos = new FileOutputStream(f); f.mkdirs(); b.compress(CompressFormat.JPEG, 100, fos); fos.close(); Uri contentUri = Uri.fromFile(f); Intent