Android Camera2 API - Detect when we have focus
问题 So, I managed to create the functionality i wanted with the old camera the way I wanted it. With mCamera.autoFocus(autoFocusCallback); i detect when I have focus and run the required code while in preview-mode. Now I have a hard time grasping how to do the same in camera2 API. My first idea was that i'd use private void process(CaptureResult result) { switch (mState) { case STATE_PREVIEW: { // We have nothing to do when the camera preview is working normally. int afState = result.get