Cameraクラスがあなたの質問を解決するかもしれません。getCameraInfo を実行して情報を取得し、 CameraInfo を使用します。次の 2 つの定数があります。
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.