[android-developers] Re: How to disable Auto-Focus on Camera?

2009-01-19 Thread blindfold

You will find more, including autofocus, by looking at the LogCat
output window in Eclipse as a camera app starts running and changes
its (preview) settings.

Regards

On Jan 19, 8:06 am, marc marc.rob...@gmail.com wrote:
 Hello Dave or Blindfold,
     So I placed the following lines of code in the ApiDemo graphics-

 Camera Preview application, in the SurfaceCreated routine...

 String thing = mCamera.getParameters().flatten();
 System.out.println(thing);

 Here is the list of parameters it returned,

 picture-size
 preview-frame-rate
 preview-size
 picture-format
 preview-format

 Unfortunately, there are no parameters for controlling the autofocus.
 Are there any more parameters for the Camera?

 Thanks for your help
 -Marc

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



[android-developers] Re: How to disable Auto-Focus on Camera?

2009-01-18 Thread marc

Hello Dave or Blindfold,
So I placed the following lines of code in the ApiDemo graphics-
Camera Preview application, in the SurfaceCreated routine...

String thing = mCamera.getParameters().flatten();
System.out.println(thing);

Here is the list of parameters it returned,

picture-size
preview-frame-rate
preview-size
picture-format
preview-format

Unfortunately, there are no parameters for controlling the autofocus.
Are there any more parameters for the Camera?

Thanks for your help
-Marc

On Jan 15, 10:53 pm, Wanted unique nickname marc.rob...@gmail.com
wrote:
 Thank you for the reply.

 So if I run getParameters on the G1 it will show me the same
 parameters as the emulator, some of which will not be supported?

 On Jan 15, 5:17 pm, Dave Sparks davidspa...@android.com wrote:

  getParameters returns all the settings that are supported, and
  possible values for some.

  Be aware that many of these parameters are ignored on the G1 with the
  current firmware.

  On Jan 14, 10:33 pm, Wanted unique nickname marc.rob...@gmail.com
  wrote:

   Where do these Camera Parameters come from?  I see in the class index
   for Camera.Parameters that I can access different parameters through
   set(string, ...) but I have no idea what to place in the string
   argument.  Do you know of a list of all possible camera parameters or
   those which are supported by the G1?

   In the android source code its a little hard to track down.  I was
   stumped when I found native_getParameters or whatever its called.

   -Marc

   On Jan 14, 12:07 pm, blindfold seeingwithso...@gmail.com wrote:

It is not officially supported on the G1, but you might try
Camera.Parameters.set(autofocus, false);

Regards

On Jan 14, 7:52 pm, Wanted unique nickname marc.rob...@gmail.com
wrote:

 Hi,
     Does anyone know how to disable autofocus from the Camera class?
 This feature is available in SnapPhoto.  I want to take two images at
 different levels of focus.  So the first picture is captured with
 AutoFocus disabled, and then on the second picture I enable autofocus
 and hope that it finds a better focus point.

 Please, any suggestions would help.

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



[android-developers] Re: How to disable Auto-Focus on Camera?

2009-01-15 Thread Wanted unique nickname

Thank you for the reply.

So if I run getParameters on the G1 it will show me the same
parameters as the emulator, some of which will not be supported?

On Jan 15, 5:17 pm, Dave Sparks davidspa...@android.com wrote:
 getParameters returns all the settings that are supported, and
 possible values for some.

 Be aware that many of these parameters are ignored on the G1 with the
 current firmware.

 On Jan 14, 10:33 pm, Wanted unique nickname marc.rob...@gmail.com
 wrote:

  Where do these Camera Parameters come from?  I see in the class index
  for Camera.Parameters that I can access different parameters through
  set(string, ...) but I have no idea what to place in the string
  argument.  Do you know of a list of all possible camera parameters or
  those which are supported by the G1?

  In the android source code its a little hard to track down.  I was
  stumped when I found native_getParameters or whatever its called.

  -Marc

  On Jan 14, 12:07 pm, blindfold seeingwithso...@gmail.com wrote:

   It is not officially supported on the G1, but you might try
   Camera.Parameters.set(autofocus, false);

   Regards

   On Jan 14, 7:52 pm, Wanted unique nickname marc.rob...@gmail.com
   wrote:

Hi,
    Does anyone know how to disable autofocus from the Camera class?
This feature is available in SnapPhoto.  I want to take two images at
different levels of focus.  So the first picture is captured with
AutoFocus disabled, and then on the second picture I enable autofocus
and hope that it finds a better focus point.

Please, any suggestions would help.

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



[android-developers] Re: How to disable Auto-Focus on Camera?

2009-01-14 Thread blindfold

It is not officially supported on the G1, but you might try
Camera.Parameters.set(autofocus, false);

Regards

On Jan 14, 7:52 pm, Wanted unique nickname marc.rob...@gmail.com
wrote:
 Hi,
     Does anyone know how to disable autofocus from the Camera class?
 This feature is available in SnapPhoto.  I want to take two images at
 different levels of focus.  So the first picture is captured with
 AutoFocus disabled, and then on the second picture I enable autofocus
 and hope that it finds a better focus point.

 Please, any suggestions would help.

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



[android-developers] Re: How to disable Auto-Focus on Camera?

2009-01-14 Thread Wanted unique nickname

Where do these Camera Parameters come from?  I see in the class index
for Camera.Parameters that I can access different parameters through
set(string, ...) but I have no idea what to place in the string
argument.  Do you know of a list of all possible camera parameters or
those which are supported by the G1?

In the android source code its a little hard to track down.  I was
stumped when I found native_getParameters or whatever its called.

-Marc

On Jan 14, 12:07 pm, blindfold seeingwithso...@gmail.com wrote:
 It is not officially supported on the G1, but you might try
 Camera.Parameters.set(autofocus, false);

 Regards

 On Jan 14, 7:52 pm, Wanted unique nickname marc.rob...@gmail.com
 wrote:

  Hi,
      Does anyone know how to disable autofocus from the Camera class?
  This feature is available in SnapPhoto.  I want to take two images at
  different levels of focus.  So the first picture is captured with
  AutoFocus disabled, and then on the second picture I enable autofocus
  and hope that it finds a better focus point.

  Please, any suggestions would help.

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