Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

2 votes
0 answers
963 views

CameraX captured image size and PreviewView size are not the same for some device

I am trying to use CameraX for image capture and capture preview. I found captured image and preview image different for google pixel 5a, but for Samsung A72 device captured image and preview image ...
Mdohammad Sajib Al Seraj's user avatar
3 votes
1 answer
2k views

Android CameraX VideoRecorder error > Encoder cannot created : null

I am building an Android app that records video using Camera X. The probe in a Samsung A52 and it works correctly. When running on a Galaxy Core A03 I get these errors: E/Recorder: Unable to ...
MrKevin574's user avatar
0 votes
1 answer
1k views

Set White Balance, ISO, Aperture & Shutter Speed with Night Mode and Exposure using CameraX and Camera2

I'm trying to set the camera preview White Balance, ISO, Aperture & Shutter Speed with Night Mode and Exposure settings for my app. I have set night mode and exposure setting using CameraX, and ...
Mdohammad Sajib Al Seraj's user avatar
0 votes
4 answers
3k views

I want to create app that can take photo using cameraX but its is not saving photos

I created app with PreviewView, button and preview is working perfect but ImageCapture is not working. I set button's onClick to capture image but getting exception "Cannot save capture result to ...
Jayur Pithava's user avatar
1 vote
1 answer
856 views

Multiple camera previews from same camera x not working as intended

I've been trying to make a camera preview using CameraX on android studio, and I managed to get two instances of the preview loaded. However, when I run it, the camera previews show different parts of ...
Hinson Chan's user avatar
2 votes
1 answer
3k views

How to use cameraX with SurfaceView/TextureView?

I am planning to migrate camera api to camerax. Currently I am using SurfaceView to show the camera preview. I noticed that camerax is using PreviewView to show the camera preview. As this library is ...
Deepu George Jacob's user avatar
0 votes
0 answers
497 views

Android CameraX takePicture does not work from android codelab

I was running this code taken from "Getting Started with CameraX" codelab. When I press button I cant see anything from screen or logcat. After that I tried to add external storage write and ...
samedhrmn's user avatar
  • 117
0 votes
1 answer
517 views

How can I set the exact creation time of a video as a file name with Camerax

I'm currently developing a video recorder with androidx because I need video files with their exact creation time as millisecond timestamp as title for another project. The problem is that I just ...
Jonathan's user avatar
1 vote
0 answers
1k views

How to apply color filter on live PreviewView of CameraX?

I want to apply color filters on camera preview. Is it possible to do with PreviewView of CameraX? If yes then how can I achieve that? I'm using following properties: androidx.camera:camera-camera2:1....
Pratik Pitale's user avatar
4 votes
0 answers
338 views

How to do the live stream using CameraX Jetpack Library in Android?

I want to do a live stream that shows on my subscribers. I found some libraries but that all libraries more than 4 years old. And, I am a little bit familiar with the cameraX library of Jetpack it is ...
anas's user avatar
  • 63
3 votes
1 answer
2k views

how to change camera lens facing programmatically in Camera X library?

currently I am using this gradle implementation "androidx.camera:camera-camera2:1.0.0-beta11" implementation "androidx.camera:camera-lifecycle:1.0.0-beta11" implementation "...
Agung Laksana's user avatar
1 vote
1 answer
1k views

how to automatically rotate the image after capturing image using Camera X library?

I am new in using camera X library. I am trying to follow the codelab from Google in here I can show the preview and capture the image. but the problem is ...... when I capture the image in landscape, ...
Agung Laksana's user avatar
3 votes
1 answer
2k views

Is there any way to use Android CameraX API with minimum SDK less than 21?

Is it possible to use AndroidX CameraX API on minimum SDK version less than 21?
Jafar Sadiq SH's user avatar
2 votes
1 answer
3k views

CameraX cameraView and previewView

What is different between camerax cameraView and previewView? because i can't find resources or articles about comparing 2 view for previewing camerax
Franky Junior's user avatar
0 votes
1 answer
265 views

Select torch to use with Android CameraX

I have developed an application that uses the Camera using the CameraX library. I can control both the front and back cameras and turn their torches on and off. The problem is that one phone, a Huawei ...
DrMaxB's user avatar
  • 600

15 30 50 per page