If by enabled, you mean open or currently in use, then yes, there is a way.
Camera.open() will give you an Exception if Camera is in use.
So you can make use of this to check if the camera is enabled, currently in use or even if there is actually a camera.
/** how to get the camera object savely */
public static Camera getCameraInstance(){
Camera c = null;
try {
c = Camera.open(); // try to get camera
}
catch (Exception e){
// Camera is not available (in use) or does not exist
}
return c; // null will be returned if unavailable, or non existent
}
If the camera is currently in use but you want to use it, simply call
Camera.release();
and then use it yourself.