Reputation: 1
int frontCameraId = getFrontCamera();
Camera fc = Camera.open(frontCameraId);
int backendCamera = getBackendCamera();
Camera bc = Camera.open(backendCamera);
#bc == null
, so how to open at the same time?
is it possible to open camera at same time ?
Upvotes: 0
Views: 288
Reputation: 10368
Galaxy S4 has introduced an advanced feature of using two cameras at the same time.
However, it is a SAMSUNG private technology. You can check if is included in the SDK extension of SAMSUNG.
Upvotes: 0
Reputation: 26034
You are not creating any new object of Camera explicitly. You are using singleton method of Camera
. So there will be only one instance in memory.
In Android documentation, there is written that..
Your application should only have one Camera object active at a time for a particular hardware camera.
So this will also tell us that, we can't use more then one objects of Camera at the same time.
It is not possible.
Upvotes: 7