android-Camera2Basic icon indicating copy to clipboard operation
android-Camera2Basic copied to clipboard

Image not being captured in Android Emulator API 28

Open hrishikesh-kadam opened this issue 7 years ago • 3 comments

hrishikesh-kadam avatar Feb 01 '19 11:02 hrishikesh-kadam

Any ideas on what could be causing this? I am having issues aswell.

MarioDiar avatar Mar 07 '19 18:03 MarioDiar

I had an issue with the Emulator but that is at least also version 27. The problem for me was that the virtual scene camera does not have autofocus so when it waits for focus it will never happen. I fixed this by adding || afState == CaptureResult.CONTROL_AF_STATE_INACTIVE in the mCaptureCallback under the case STATE_WAITING_LOCK: in the if statement which looks like if (afState == null) in the original version. It should look like this: if (afState == null || afState == CaptureResult.CONTROL_AF_STATE_INACTIVE)

JanvanZetten avatar May 10 '19 11:05 JanvanZetten

This sample has been migrated to a new location where we can accept Pull Requests (check README for more information).

As recommended by GitHub, we are closing all issues and pull requests now that this older repo will be archived.

If you still see this issue in the updated repo, please reopen the issue/PR there. Thank you!

codingjeremy avatar Sep 19 '19 22:09 codingjeremy