我使用以下代码来处理相机:
mMediaRecorderVideo=new MediaRecorder();
mCamera=Camera.open();
mCamera.setDisplayOrientation(90);
mCamera.unlock();
mMediaRecorderVideo.setCamera(mCamera);
mMediaRecorderVideo.setAudioSource(MediaRecorder.AudioSource.DEFAULT);
mMediaRecorderVideo.setVideoSource(MediaRecorder.VideoSource.DEFAULT);
mMediaRecorderVideo.setProfile(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH));
所以,我使用设备的默认摄像头,但如果可能的话,我需要设置前置摄像头。请告诉我,我该如何检查它?