Search code examples
androidcamera

How to play native camera sound on Android


I would like to play native camera shutter sound clip on camera preview capture. I'm referring to the sound clip played when takePicture() is called.
How could I that? Can someone walk me through the steps?


Solution

  • This resource explains how to play audio files: https://developer.android.com/guide/topics/media/index.html

    You'll probably have to provide your own shutter sound effect.