Capturing images from the front camera without opening the camera application in android

I want to capture and save the image and get the image url using the front camera of the Android phone without opening the camera application. Can anyone help me with this?

0
source share
1 answer

Just follow these steps: How to take photos

You need a front camera, so you must call to select a camera

myCamera.open(cameraNumber) 

and cameraNumber is the number of the camera you want to use. if you have two cameras, you can call it with 0 or 1. Try both options to see which camera activates each parameter.

+3
source

Source: https://habr.com/ru/post/1432908/


All Articles