Sure you can use something like:

Camera mCamera = Camera.open();
Camera.Parameters params = mCamera.getParameters();
ArrayList<String> focusModes = params.getSupportedFocusModes();
ArrayList<String> flashModes = params.getSupportedFlashModes();

Take care.

On 18 mar, 13:30, Paolo <brand...@gmail.com> wrote:
> I have to develop an app which can take a picture and do some work
> with it.
> I have read I need to set the permission on the manifest file, for
> using camera.
>
> I would like to use also the autofocus and flash feature, but Android
> explains to use a lot of permission can limit the number of compatible
> mobile with my app. For this reason I have preferred to use only this
> permission features:
>
> <uses-permission android:name="android.permission.CAMERA" />
> <uses-feature android:name="android.hardware.camera" />
>
> Is there a way to know at runtime if the specified mobile has the
> autofocus or flash features and to enable the app to use them?

-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to