android-Camera2Basic
android-Camera2Basic copied to clipboard
Does not work on Nexus 9
- In portrait mode, the blue side bar and 'picture' button aren't visible due to the 4x3 aspect ratio of the Nexus 9. The blue bar should be semi-transparent like in the native app and overlaid on the camera preview if their bounds overlap.
- Tapping 'picture' cause the app to get stuck in the 'STATE_AWAITING_LOCK' state. I haven't found a way to capture a picture on a Nexus 9 using this sample app.
I was able to get capture working by changing the lockFocus capture request to use 'mCaptureSession.capture()' rather than 'mCaptureSession.setRepeatingRequest()' in Camera2BasicFragment.java line 636