How do I detect if android phone has dual back camera
I tried
CameraManager manager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE);
try {
for(String id: manager.getCameraIdList())
Log.e("dualtest", id);
} catch (CameraAccessException e) {
e.printStackTrace();
}
but it gives me only 2 ids 0 and 1.