List of utility methods to do Camera Get
Camera | getCamera() get Camera return mCamera;
|
int | getCameraId() get Camera Id return mCameraId;
|
int | getCameraId(int facing) get Camera Id int cameraId = -1; int numberOfCameras = Camera.getNumberOfCameras(); for (int i = 0; i < numberOfCameras; i++) { CameraInfo info = new CameraInfo(); Camera.getCameraInfo(i, info); if (info.facing == facing) { cameraId = i; break; ... |
int | getCameraId(int position) get Camera Id int mNumberOfCameras = Camera.getNumberOfCameras(); Camera.CameraInfo cameraInfo = new Camera.CameraInfo(); for (int i = 0; i < mNumberOfCameras; i++) { Camera.getCameraInfo(i, cameraInfo); if (cameraInfo.facing == position) return i; return 0; ... |
Camera | getCameraInstance() get Camera Instance Camera c = null; try { c = Camera.open(); } catch (Exception e) { return c; |
Camera | getCameraInstance() get Camera Instance Camera c = null; try { c = Camera.open(); } catch (Exception e) { return c; |
Camera | getCameraInstance() get Camera Instance Camera c = null; try { c = Camera.open(Camera.CameraInfo.CAMERA_FACING_FRONT); } catch (Exception e) { return c; |
Camera | getDefaultCamera(int position) get Default Camera int mNumberOfCameras = Camera.getNumberOfCameras(); Camera.CameraInfo cameraInfo = new Camera.CameraInfo(); for (int i = 0; i < mNumberOfCameras; i++) { Camera.getCameraInfo(i, cameraInfo); if (cameraInfo.facing == position) { return Camera.open(i); return null; |
Camera | getDefaultCamera(int position) get Default Camera int mNumberOfCameras = Camera.getNumberOfCameras(); Camera.CameraInfo cameraInfo = new Camera.CameraInfo(); for (int i = 0; i < mNumberOfCameras; i++) { Camera.getCameraInfo(i, cameraInfo); if (cameraInfo.facing == position) { return Camera.open(i); return null; |
Camera | getDefaultCameraInstance() get Default Camera Instance return Camera.open();
|