[Solved] take picture automatic , without user interaction in android [closed]
You can use an approach like this private Camera.PictureCallback mPictureCallback = new Camera.PictureCallback() { @Override public void onPictureTaken(final byte[] bytes,final Camera camera) { // Do something here … save, display … } }; public void takePictureBack(ControllerState state){ Camera camera = null; int cameraCount = Camera.getNumberOfCameras(); for (int cameraId = 0; cameraId < cameraCount; cameraId++) { … Read more