I think the intent of the designer of Android is that instead of detecting camera presence at runtime, developers should declare the CAMERA permission in the AndroidManifest file. Also, include the <uses- feature> tag. Then your application would be downloaded only to devices that have a camera.
But just in case you really do have some interesting application that really should be downloaded on either, you can always resort to the open() method of the Camera object, (from the android.hardware package) and check for error. Don't forget to set the callback Camera.ErrorCallback (define its onError() method). On Jun 28, 9:41 pm, Ashutosh Sharma <[email protected]> wrote: > I too am trying to figure this out - is there a reliable way to know > whether a device has camera hardware at all? > > Thanks, > Ashutosh -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

