Is there any way to mute the camera shutter sound in Android (not rooted phone)?
I use this code to mute my audio sound when taking picture:
AudioManager mgr = (AudioManager)getSystemService(Context.AUDIO_SERVICE);
int streamType = AudioManager.STREAM_SYSTEM;
mgr.setStreamSolo(streamType, true);
mgr.setRingerMode(AudioManager.RINGER_MODE_SILENT);
mgr.setStreamMute(streamType, true);
I mute the sound and silent the phone.
mCamera.takePicture(null, null, photoCallback);
then take the picture
It's working on HTC HERO, HTC Desire, Motorola ME860, MotoA953
. But when I tested it on Samsung Tab p1000
and Sony Experia R800i
, it's not working. Is there any other work around?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…