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
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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…