camera-samples
camera-samples copied to clipboard
Multiple samples showing the best practices in camera APIs on Android.
I'm having this problem with Huawei phones (P40, P40 pro, Mate 30 Pro). If I choose 1280x720 or 640x480 it will show a black preview and it will throw this...
Long story short: You need to click anywhere in the screen at least once, prior to have any click listener event to work. Steps to reproduce: - Start the Camera...
## Environment - Pixel 3a , Android 10(Build Number QSR1.190920.001, x86) ## Logcat ``` 2020-08-26 15:02:43.354 30125-30125/com.android.example.camera2.video E/AndroidRuntime: FATAL EXCEPTION: main Process: com.android.example.camera2.video, PID: 30125 java.io.IOException: prepare failed. at android.media.MediaRecorder._prepare(Native...
The argument Handler of CameraCaptureSession.setRepeatingRequest() can be null when callback is null because it is never used. For [example](https://github.com/android/camera-samples/blob/2b446855ca2662db42ff1755968f6af495c2a962/Camera2Video/app/src/main/java/com/example/android/camera2/video/fragments/CameraFragment.kt#L253] ```kotlin session.setRepeatingRequest(previewRequest, null, cameraHandler) ``` In document of CameraCaptureSession.setRepeatingRequest() says that...

Activity not exported; App Icon is visible but Application can't start.
使用的是官方的demo (https://github.com/android/camera-samples) 手机型号:huawei P50 pro 系统:鸿蒙 3.0.0 操作录屏: https://user-images.githubusercontent.com/10184291/184869266-50f5192b-6d6e-4018-ae4c-18d7321f7179.mp4 照片: 
It fail to capture images, it tells me `Photo capture failed: Camera is closed` when I close the activity. Sometimes I have this error below. But it works on API...
I use the camera2 API For capture photo in the application. On the first time I click on that time Its working fine but when I click on that second...
How to use camerax 1.3.0-alpha04 to open two cameras