Android Question Camera2 multicamera available?

ricprehn

Member
Dear all,

I would like to be able to choose the ultra wide angle of my phone. I have read that Camera2 Api from android supports multicamera. And you are able to select one of the back cameras (tele, normal, wide angle) with getPhysicalCameraIds ().

I wonder if this functionality is enabled with the Camera2 library from B4A and if not, are there any plans to include this ability?
Is any other way in B4A to select different back lenses?

Many thanks and Best regards,
Ricard.
 

ricprehn

Member
Moved to the questions forum.

Start with this: https://www.b4x.com/android/forum/threads/does-otg-camera-work-with-b4a.107991/post-675135
How many ids are printed?
See the code in CamEx2.OpenCamera. You can change it to open whichever id is available.
Hello Erel,

Thanks for your answer. I have run the code you told me and I am getting this log printed (below), I see id 0,1. The phone has 4 cameras. It seems that it is not listing the other cameras. Only '0' for back camera and '1' for front camera.

Regards,
Ricard.

Registro conectado a: Xiaomi M2003J15SC
--------- beginning of crash
--------- beginning of system
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
0
1
FULL

Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
Start success: true
 
Upvote 0
Top