Hi all I am writing an application that uses the built-in camera activity for taking pictures and sending them to a server along with some other data.
Since our users will use this application in their jobs, I would like the images taken, not to be available in the general gallery on the phone. I have tried some different approaches, with my currently implemented solution is this: Start the camera application using MediaStore.ACTION_IMAGE_CAPTURE intent, and EXTRA_OUTPUT pointing to a an Uri on the SD card. The following code is used: imageUri = Uri.fromFile(new File(FotoDok.EXTERNALIMAGEDIR, UUID.randomUUID() + ".jpg")); Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra(MediaStore.EXTRA_OUTPUT, imageUri); intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1); startActivityForResult(intent, CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE); In the folder the FotoDok.EXTERNALIMAGEDIR is pointing at, I have placed a .nomedia file to disable media indexing. The folder is placed at the sd card under Android/data/<myPackage>/images. But the problem is that when using DDMS I can see that the camera application leaves an identical image under e.g. sdcard/DCIM/100MEDIA/IAMGE0283.jpg And this image shows up in the gallery. Are there any way to avoid images taken with the built-in camera application showing up in the gallery. And here I would prefer a general solution that works both on SE, HTC, Google, etc, devices. I hope somebody out there have a solution for this. Best regards /Anders -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en