Android Question Take photo without sound???

barx

Well-Known Member
Licensed User
Longtime User
Not sure if it is possible.

Such action is banned in some countries
 
Upvote 0

ComposerB4A

Member
Licensed User
Longtime User
Thanks,
one question ¿exist one code in B4A similar to:
http://stackoverflow.com/questions/10383083/how-to-mute-camera-shutter-sound-on-android-phone

add text from webpage:
B4X:
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?
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
This link was in the similar threads at the top of the page. It may help.
 
Upvote 0

ComposerB4A

Member
Licensed User
Longtime User
thanks,
i tried the code (in the webpage mentioned) and appear one error (i post the error log in the webpage mentioned)
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…