In 2.0, apps should call getSupportedPictureSizes to get valid picture
sizes and then setPictureSize.

http://developer.android.com/reference/android/hardware/Camera.Parameters.html#getSupportedPictureSizes()

On Nov 17, 12:28 am, Streets Of Boston <[email protected]>
wrote:
> That's just in the emulator. The emulatedcameraonly 'takes' 213x350
> pixel pictures.
> And you need to deal with it anyway in your code, just in case you set
> some picture width/height that is not supported by some real Android
> phone.
>
> On Oct 29, 10:03 am, chrispix <[email protected]> wrote:
>
>
>
> > I am having an issue w/ 2.0 in the emulator when I am trying to set a
> > couple of parameters.  Including the size.
>
> > It appears these messages appear.. I guess my question is, why is the
> > picture size stuck at 213x350? If I set my picture size to 640x480 it
> > fails.
>
> > Chris.
>
> > 10-29 14:55:24.261: DEBUG/CameraService(31): getParameters(picture-
> > format=jpeg;picture-size=213x350;preview-format=yuv422sp;preview-frame-
> > rate=15;preview-size=176x144)
> > 10-29 14:55:24.261: DEBUG/CameraService(31): setParameters(preview-
> > size=176x144;preview-format=yuv422sp;picture-size=640x480;picture-
> > format=jpeg;preview-frame-rate=15)
> > 10-29 14:55:24.261: ERROR/CameraHardwareStub(31): Still picture size
> > must be size of canned JPEG (213x350)
> > 10-29 14:55:24.271: DEBUG/CameraService(31): setParameters(focus-
> > mode=auto;preview-size=176x144;preview-format=yuv422sp;picture-
> > size=640x480;rotation=90;picture-format=jpeg;preview-frame-rate=15)
> > 10-29 14:55:24.271: ERROR/CameraHardwareStub(31): Still picture size
> > must be size of canned JPEG (213x350)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to