[android-developers] Re: Camera.getNumberOfCameras() not working

2011-04-05 Thread Abhijeet Pathak
I also created a new project in Eclipse. In that also, getNumberOfCameras() is not shown in dropdown list of available method names for Camera. -- 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] Re: Camera.getNumberOfCameras() not working

2011-04-05 Thread blindfold
getNumberOfCameras() needs API level 9 according to documentation. On Apr 5, 8:54 am, Abhijeet Pathak pathak...@gmail.com wrote: I am getting error Cannot find symbol when using getNumberOfCameras(). I am compiling app for api level 8. Please help me fixing this. Thanks, Abhijeet -- You

Re: [android-developers] Re: Camera.getNumberOfCameras() not working

2011-04-05 Thread Abhijeet Pathak
Does this mean Android 2.3? If yes, hows to retrieve number of cameras on android 2.2 (api level 8)? On 5 Apr 2011 13:02, blindfold seeingwithso...@gmail.com wrote: getNumberOfCameras() needs API level 9 according to documentation. On Apr 5, 8:54 am, Abhijeet Pathak pathak...@gmail.com wrote:

[android-developers] Re: Camera.getNumberOfCameras() not working

2011-04-05 Thread blindfold
Does this mean Android 2.3? Yes. If yes, hows to retrieve number of cameras on android 2.2 (api level 8)? You cannot. You can only make it work for Android 2.3+ and make things degrade gracefully (not using a camera count) for Android 2.2 and lower On Apr 5, 9:36 am, Abhijeet Pathak

[android-developers] Re: Camera.getNumberOfCameras() not working

2011-04-05 Thread lbendlin
I don't think any 2.2 device or older has more than one camera. So you only need to test for the existence of that one camera, possibly with Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); -- You received this message because you are subscribed to the Google Groups Android