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 8036075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:29:56+00:00 2026-06-05T02:29:56+00:00

I am using the takePicture() method from the Camera class. It takes the picture

  • 0

I am using the takePicture() method from the Camera class. It takes the picture , but it makes no sound! My client wants the default click sound that Android makes.

I have seen other threads and it seems that the problem is in disabling the sound, not the opposite! Why is it that my app is not making the click sound??

  • 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-06-05T02:29:58+00:00Added an answer on June 5, 2026 at 2:29 am

    I also had this problem. I solved it by using following code:
    The following is used to call takePicture:

    clickButton.setOnClickListener(new View.OnClickListener() {
    
                @Override
                public void onClick(final View view) {
                    mCamera.takePicture(shutterCallback, null, onPicTaken);
                }
            });
    

    Now shutteerCallBack:

    private final ShutterCallback shutterCallback = new ShutterCallback() {
            public void onShutter() {
                AudioManager mgr = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
                mgr.playSoundEffect(AudioManager.FLAG_PLAY_SOUND);
            }
        };
    

    Now Do whatever after taking picture from camera:

         /**
         * This will be called after taking picture from camera.
         */
        final transient private PictureCallback onPicTaken = new PictureCallback() {
            /**
             * After taking picture, onPictureTaken() will be called where image
             * will be saved.
             * 
             */
            @Override
            public void onPictureTaken(final byte[] data, final Camera camera) {
             }
    

    This will play sound on clicking capture button.

    Thank you 🙂

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

Sidebar

Related Questions

Exposure values from camera can be acquired when you take picture (without saving it
I have an application which makes use of the default camera to take pictures
When using the following code to select a picture from my gallery, I also
I have successfully captured the single photo using camera in Android. But when I
In my app, I was able to run a code using the camera class
I am building a module which connects to a camera, takes a picture, and
I'm taking a picture using my own camera and trying to save the result
I'm taking a picture using my own camera and trying to save the result
Using top it's easy to identify processes that are hogging memory and cpu, but
I am capturing image by using camera in my app. 1) it saves image

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.