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) ?
Asked
Active
Viewed 88 times
2 Answers
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