手机找回APP-切换摄像头

实现了按钮切换摄像头,本来打算同时打开前置摄像头和后置摄像头的,发现这有点麻烦,手册貌似是说打开另一个摄像头之前必须释放当前的,也许有一些其他Hack途径。另外,发现,切换摄像头耗时挺长的。

public static Camera open (int cameraId)

Since: API Level 9 Creates a new Camera object to access a particular hardware camera. You must call release() when you are done using the camera, otherwise it will remain locked and be unavailable to other applications. Your application should only have one Camera object active at a time for a particular hardware camera.

继续阅读手机找回APP-切换摄像头