10

I am looking for a way to change the light sensitivity of my Evo 4G camerea. I know it is not the camera's shutter speed because it is a digital camera. The next most relevant aspect is the ISO setting, but the Android SDK does not have a way to manipulate it. Does any one know an alternative? i.e scene mode, exposure or effects

**parameter.set("iso", int) sets the iso.

Does anyone have the run down on what scene mode values represents?


Thanks for the input. I have looked over those pages numerous times. I was looking for a function similar to parameter.set("iso", int) because this function was successful in changing the iso setting. The camera does not have aperture as a setting. Maybe I can manipulate some firmware files.

Gumbo
  • 643,351
  • 109
  • 780
  • 844
Will
  • 109
  • 1
  • 1
  • 6
  • 2
    _I know it is not the camera's shutter speed because it is a digital camera._ this is non-sequitur, as the shutter speed, whether mechanical or electronic (digital) when combined with the aperture setting effects the amount of light allowed to pass by the camera onto the film or sensor. This is typically referred to as exposure. Reference: http://en.wikipedia.org/wiki/Aperture and http://en.wikipedia.org/wiki/Exposure_%28photography%29 – mctylr Aug 23 '10 at 19:03
  • +1 for non-sequitur, sure is a fancy way to tell someone they are wrong! – Chris Oct 02 '11 at 19:23

3 Answers3

8

Sorry it's late but might be helpful for others

To set aperture:

Camera.Parameters params = camera.getParameters(); 
params.set("mode", "m");
params.set("aperture", "28"); //can be 28 32 35 40 45 50 56 63 71 80 on default zoom
params.set("shutter-speed", 9); // depends on camera, eg. 1 means longest
params.set("iso", 200);
Papak
  • 85
  • 9
Nicholas Ng
  • 1,428
  • 18
  • 23
3

You can use mCamera.getParameters().flatten() to see all the settings your camera support.

In my situation, the key of the ISO parameter is "iso-speed-values".

You can use String isoSpeedValues = mCamera.getParameters().get("iso-speed-values") to get all the support values.

And use mCamera.getParameters().set("iso-speed", value) to set a specify value.

But I can't find any parameter to set a Shutter Speed(Exposure Time). Any idea?

codezjx
  • 9,012
  • 5
  • 47
  • 57
2

Try Camera.Parameter's exposure compensation calls.

EDIT (5/2015) Android 5.0 added APIs for this in android.hardware.camera2. See PkmX's lcamera for an example.

Yoni Samlan
  • 37,905
  • 5
  • 60
  • 62