There are return values and such that allow handling if SensorManager
sensors and location providers aren't available, but what about the
camera and microphone for audio recording?  Is there a way to detect
those in software, or are we just to assume that every device running
Android (even the rumored set-top box) is going to have a camera and
microphone and try to use them?

In the case of the camera, it would seem that Camera.open() returning
null would indicate the lack of hardware.  I don't know if that
assumption is valid or not, though, considering it isn't documented as
such.

In the case of the microphone, though, I don't see anything that could
possibly be checked.  The same goes for the camera if you're wanting
to do video with the MediaRecorder class.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to