0

在我的应用程序中,我想知道摄像头应用程序是否打开以及摄像头的类型(前置摄像头或后置摄像头)?

4

2 回答 2

0

相机类可能会解决您的问题。执行 getCameraInfo 获取信息,然后使用CameraInfo。它有两个常数:

int CAMERA_FACING_BACK The facing of the camera is opposite to that of the screen.

int CAMERA_FACING_FRONT The facing of the camera is the same as that of the screen.
于 2012-04-11T14:47:41.923 回答
0

检查

Camera.CameraInfo.CAMERA_FACING_BACK;

或者

Camera.CameraInfo.CAMERA_FACING_FRONT;
于 2012-04-11T14:52:42.470 回答