I create and save image in my Android app:
File dir = new File(Environment.getExternalStorageDirectory(), ".myappname/saved");
File imageFile = new File(dir, "IMG" + random() + ".jpg");
FileOutputStream out = new FileOutputStream(imageFile);
bi.compress(Bitmap.CompressFormat.JPEG, 100, out);
The images do not show up in the gallery -- even after reboots.
UPDATE: I only show part of the code! I also corrected the typos I introduced when writing the StackOverFlow message. The images save fine -- and I can view them -- they just don't show in Gallery. I just removed the dot from ".myappname" -- no the gallery shows the images. Strange. As I say below other apps save images in dot-folders and they show in gallery :(