In my app, I\'d like to use the camera, if the device has one. Are there any devices running android that do not have a camera? By including the following into my m
you should use this to find camera in your device
public static boolean isCameraAvailable(Context context) {
return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA_ANY);
}
If you are using Android 2.3, there are some APIs that you can check your camera status, such as the number of cameras (front and back)