camera-samples icon indicating copy to clipboard operation
camera-samples copied to clipboard

Multiple samples showing the best practices in camera APIs on Android.

Results 189 camera-samples issues
Sort by recently updated
recently updated
newest added

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...

![Screenshot_20191121-210644](https://user-images.githubusercontent.com/742456/69392164-f80ee500-0c89-11ea-8957-3c2a2d663ee8.png)

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 照片: ![飞书20220816-192242](https://user-images.githubusercontent.com/10184291/184868936-1d9c0ce9-7475-462d-8e3c-4f60ea4c0381.jpg)

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