How to take photos from the front and rear cameras at the same time?

I am trying to make an application that takes a picture using the front and rear cameras in one shot.

It seemed to look like.

enter image description here

I read http://developer.android.com/reference/android/hardware/Camera.html and searched and really could not find anything on this issue, but I know that I saw in the application a store of other applications like this.

+6
source share
1 answer

This mainly depends on the hardware of the device, and most devices now do not allow both cameras to be used simultaneously. Even if any device can use both cameras, if you want the application to work flawlessly on as many devices as possible (and this is what you want), you should not implement this solution. Google says:

To make your application compatible with a large number of devices, you should not make assumptions about the characteristics of the device’s camera

What you can do, and it depends on the application you are writing, is to periodically take pictures once with the front camera and a second time with the rear camera.

+5
source

All Articles