Take a look at the Camera API<http://developer.android.com/reference/android/hardware/Camera.html>. What you're trying to do is pretty straightforward.
1. Get amount of cameras available with Camera.getNumberOfCameras() 2. Call Camera.getCameraInfo(idx, cameraInfo) for each available camera. The index number can range from 0 to the amount of cameras - 1 But be aware that these API extensions only exist since API level 9. On Sunday, January 27, 2013 12:46:51 PM UTC-6, saex wrote: > > Hi > > I need to detect if the phone has a front facing camera, and if so, I need > to calculate the megapixels. The same thing goes for a rear facing camera. > > I know how to get the megapixels of a "Camera" object, but I don't know > how to check for the other things. > > P.s.: I would also be nice if you know a way to check if the Camera has > flash or not, and other cool statistics about the camera > -- -- 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

