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

The crash was caused because launcher activities `android:exported` attribute was `false`, but should be `true`. After that Launcher app is able to launch the app. Device: Pixel 4a with Android...

Issue with **sample**-CameraXVideo When the camera is recording and the back button is pressed, app crashes. This is unhandled

android13, use adb shell uiautomator dump, can't dump the front camera ui, why ?

E/AndroidRuntime: FATAL EXCEPTION: CameraX-core_camera_0 Process: uz.oneid.app, PID: 2861 java.lang.AbstractMethodError: abstract method "androidx.camera.core.CameraInfo androidx.camera.core.impl.CameraInternal.getCameraInfo()" at androidx.camera.core.CameraSelector.filter(CameraSelector.java:132) at androidx.camera.core.CameraSelector.select(CameraSelector.java:75) at androidx.camera.core.impl.CameraValidator.validateCameras(CameraValidator.java:81) at androidx.camera.core.CameraX.lambda$initAndRetryRecursively$9$CameraX(CameraX.java:613) at androidx.camera.core.CameraX$$ExternalSyntheticLambda10.run(Unknown Source:10) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:923)

Device and System: Multiple, multiple emulator configurations, multiple hardware devices. No real error in logcat. Steps: Remove `navController.navigate...` part from [here](https://github.com/android/camera-samples/blob/6cbd2cc5a5318029f889fb46b4509c869b454856/Camera2Basic/app/src/main/java/com/example/android/camera2/basic/fragments/CameraFragment.kt#L248). I want to take multiple pictures, so, just spam...

When trying to save the bitmap from ImageProxy it save the bitmap as distorted but only in case of FrontCamera. we have tested on multiple devices the issues only appears...

I want to preview and take picture with aspect ratio is 1:1. How to do that? Thanks.

UPDATE: This appears to be related to https://github.com/android/camera-samples/issues/109, But with Camera2 instead of CameraX. I've built a test app using Camera2 video and MediaRecoder. This was seemingly working, but I...

After recording a video with **CameraXVideo** sample the video result is glitchy I tried all different Qualities and Back/Front camera with the same result. For some reason the file has...