Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use CameraX without XML and PreviewView in service or Receiver? [closed]

I want to take photo with CameraX in service without any xml and PreviewView or something else for showing picture, But I have problem.

like image 781
Amin Majlesi Avatar asked Nov 21 '25 20:11

Amin Majlesi


1 Answers

The CameraX use cases (Preview, ImageAnalysis and ImageCapture) are all completely independent.

Bind only ImageCapture to the lifecycle without any Preview that requires PreviewView. It will work.

like image 174
Ognjen Bogicevic Avatar answered Nov 24 '25 10:11

Ognjen Bogicevic