I am using this
camera.takePicture(null, rawCallback, jpegCallback);
but with some devices it makes a sound when the camera captures the image.<
As harism mentioned, this is not possible to do on some devices, because there are legal requirements in some markets (Japan, for example) that taking a picture always results in an audible shutter sound.
The stream type used for these types of sounds is STREAM_SYSTEM_ENFORCED
, and there's a read-only system property that determines whether or not you can mute such a stream.