title: How do I change default shutter sound in Android?
body: <p>Is there any way to replace the camera shutter sound in Android? I'd like to replace the shutter sound, the sound the camera makes when snapping a photo, with something else in code.</p>
  
  <p>I used this code to silence the phone right before taking the picture, and unsilencing it right after:</p>
  
  <pre><code>AudioManager mgr = (AudioManager)getSystemService(Context.AUDIO_SERVICE);
  mgr.setStreamMute(AudioManager.STREAM_SYSTEM, true);
  </code></pre>
  
  <p>I'd prefer to replace the sound with another <code>.mp3</code> or <code>.ogg</code> that can be set dynamically by the user.</p>
  
  <p>I understand if you have a rooted phone, you can replace the file. This is not a solution for my app.</p>