0
在我的应用程序中,我想知道相机应用程序是否开启以及相机的类型(前置相机还是后置)?是否有可能知道哪些相机当前正在使用android?
在我的应用程序中,我想知道相机应用程序是否开启以及相机的类型(前置相机还是后置)?是否有可能知道哪些相机当前正在使用android?
Camera类可能会解决您的问题。执行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.
支票
Camera.CameraInfo.CAMERA_FACING_BACK;
OR
Camera.CameraInfo.CAMERA_FACING_FRONT;
http://stackoverflow.com/q/6098729/760489 – Pratik 2012-04-11 14:44:18