I'm trying to determine whether a particular Android device has a camera. The documentation for the android.hardware.Camera.open()
states
Creates a new Camera object to access the first back-facing camera on the device. If the device does not have a back-facing camera, this returns null.
The Kindle I am testing on (first generation I believe) does not have any camera, and yet open()
is returning non-null
. Why is that? Perhaps because Amazon runs a forked version of Android with different behavior? Is there another way to determine whether or not the device has a camera?