Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7177087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:38:21+00:00 2026-05-28T16:38:21+00:00

Is there any way to replace the camera shutter sound in Android? I’d like

  • 0

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.

I used this code to silence the phone right before taking the picture, and unsilencing it right after:

AudioManager mgr = (AudioManager)getSystemService(Context.AUDIO_SERVICE);
mgr.setStreamMute(AudioManager.STREAM_SYSTEM, true);

I’d prefer to replace the sound with another .mp3 or .ogg that can be set dynamically by the user.

I understand if you have a rooted phone, you can replace the file. This is not a solution for my app.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T16:38:22+00:00Added an answer on May 28, 2026 at 4:38 pm

    The sound is played from the cameraservice in the native layer of any device (libcameraservice.so). And hence any modifications in the played out sound has to be done here.

    On hindsight:

    The sound playing part in the above library is a result of a shutter callback from device camera. This checks for the volume index and hence does not playout any sound when you set the device to mute. When the event is later transferred to the app layer your implementation of Camera.ShutterCallback (refer to http://developer.android.com/reference/android/hardware/Camera.html#takePicture(android.hardware.Camera.ShutterCallback, android.hardware.Camera.PictureCallback, android.hardware.Camera.PictureCallback, android.hardware.Camera.PictureCallback) is called and hence here can unmute the audio manager and playback your audio file using the Android audio playback class like audio track.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to have something that looks just like a file on
Possible Duplicate: Is there anyway to replace or silence the camera shutter sound in
If i'm developing an alternative Android SMS application, is there any way to replace
Is there any way to replace titles faster then str_replace function? I've got a
is there any best practice way to replace a part of the default template.
Hi is there any way to 'replace' all occurences of 10 or more occurances
Is there any simple way to replace a UITableViewController from Xcode's Navigation based application
Is there any way to replace a content using jQuery from - let's say,
Is there any way to replace <select> tag to a <div> with hidden <div>
Is there any way to replace a regexp with modified content of capture group?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.