2

I used to retrieve all the specifications of Rear and Front Camera details as below.

Camera.CameraInfo cameraInfo = new Camera.CameraInfo();
Camera.getCameraInfo(i, cameraInfo);
Camera camera = Camera.open(i);
Camera.Parameters cameraParams = camera.getParameters();

After the release of new Dual and triple camera mobiles. I am not able to retrieve all the 3 camera's details separately. By passing i = 0 or 1 will retrieve the details of the rear and front camera. There is no 3rd value for the i. Did anyone come across such an issue, and how you handled that?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Anuraj R
  • 524
  • 2
  • 8
  • 24
  • on what mobile are you testing this? –  May 07 '18 at 09:01
  • This is impossible by design in most cases, see https://stackoverflow.com/a/46205821/192373. But https://github.com/autosquid/dualcamera shows that at least some LG devices let you do this. – Alex Cohn May 07 '18 at 09:11
  • @D.'s i tested in latest Mi mobiles with dual camera – Anuraj R May 08 '18 at 05:28

0 Answers0