Thursday, April 12, 2012

Is it possible to know which camera is currently using in android?

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) ?



Answer:

The Camera class may solve your question. Execute getCameraInfo to get the information and then useCameraInfo. 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.

No comments:

Post a Comment