I have an android app which consists of a Button. When you click on Button, an image should be captured from the camera without opening the camera application (the image
If you are using CAMERA2 API (added in API 21), then kindly check my answer here Capture picture without preview using camera2 API
Hope that helped :)