What values does Camera.Parameters.set("picture-size", ?) take?

Posted by mobilekid on Stack Overflow See other posts from Stack Overflow or by mobilekid
Published on 2010-03-18T08:12:26Z Indexed on 2010/03/18 8:21 UTC
Read the original article Hit count: 246

Filed under:
|

Hi, my app involves some work with the camera, therefore it needs to handle capturing of images with different resolution. My targets are 1.6 - onwards. Does anyone know what to pass in the value argument for

Camera.Parameters.set("picture-size", value)

I have look at the Donut release of the Camera app, however, it was not very clear what exactly has been used there as the value is retrieved from the SharedPreferences.

// Set picture size parameter. String pictureSize = mPreferences.getString(CameraSettings.KEY_PICTURE_SIZE, getString(R.string.pref_camera_picturesize_default)); mParameters.set(PARM_PICTURE_SIZE, pictureSize);

Lookin at the strings.xml I can see that R.string.pref_camera_picturesize_default = 2048x1536, however, I'm not sure what other values can be passed there? Is it any resolution you fancy, or are they only certain resolutions the drivers can handle? Thanks.

© Stack Overflow or respective owner

Related posts about android

Related posts about camera