0

In my application i want to know whether the camera application is On or not and also the type of camera(Front camera or back) ?

Kamalone
  • 4,045
  • 5
  • 40
  • 64

2 Answers2

0

The Camera class may solve your question. Execute getCameraInfo to get the information and then use CameraInfo. It has two constants:

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.
Rudolf Real
  • 1,948
  • 23
  • 27
0

check on

Camera.CameraInfo.CAMERA_FACING_BACK;

OR

Camera.CameraInfo.CAMERA_FACING_FRONT;
Mustafa Ibrahim
  • 1,110
  • 1
  • 9
  • 17