diff --git a/app/src/main/java/com/simplemobiletools/camera/Preview.java b/app/src/main/java/com/simplemobiletools/camera/Preview.java index 252f41cd..aa7ddb54 100644 --- a/app/src/main/java/com/simplemobiletools/camera/Preview.java +++ b/app/src/main/java/com/simplemobiletools/camera/Preview.java @@ -4,6 +4,7 @@ import android.app.Activity; import android.content.Context; import android.graphics.Rect; import android.hardware.Camera; +import android.media.MediaPlayer; import android.os.Handler; import android.util.Log; import android.view.MotionEvent; @@ -127,6 +128,7 @@ public class Preview extends ViewGroup implements SurfaceHolder.Callback, View.O } else { parameters.setFlashMode(Camera.Parameters.FLASH_MODE_OFF); } + MediaPlayer.create(getContext(), R.raw.camera_shutter).start(); camera.setParameters(parameters); camera.takePicture(null, null, takePictureCallback); } diff --git a/app/src/main/res/raw/camera_shutter.mp3 b/app/src/main/res/raw/camera_shutter.mp3 new file mode 100644 index 00000000..16a28885 Binary files /dev/null and b/app/src/main/res/raw/camera_shutter.mp3 differ