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:
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