0

私のアプリケーションでは、カメラアプリケーションがオンになっているかどうか、またカメラのタイプ (フロントカメラまたはバック) を知りたいですか?

4

2 に答える 2

0

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.
于 2012-04-11T14:47:41.923 に答える