I believe it's a Samsung Galaxy problem, as it works on both G1 and Hero. I'm setting PictureSize, but the change doesn't seem to be registered by the device.
Creating a Bitmap from the full-size image unfortunately throws an OutOfMemoryException, and I'm unfortunately unable to guarantee enough free memory for manipulation of a 5mp image! On Jan 25, 6:50 pm, Streets Of Boston <flyingdutc...@gmail.com> wrote: > Do set the PictureSize or the PreviewSize? > > If you set the preview-size, it won't affect the size of the picture > actually taken. Use the picture-size parameter for that. That has been > working on my G1 and Nexus1. > > BTW: You should be able to obtain a full-sized image (3MP or 5MP) from > onPictureTaken and creating a bitmap out of it. I'm writing a camera- > app and it works fine on my G1 and Nexus1. You have to be very very > careful with your memory-usage, though. > > On Jan 25, 7:56 am,eni<enipath...@gmail.com> wrote: > > > As title - having tried everything I could find already suggested, > > I've completely run out of options. I'm unable to set the picture size > > taken by the camera on the Samsung Galaxy. > > > I don't set preview size anywhere and I've tried the ShutterCallback > > trick. On checking the camera parameters before and after attempting > > to change the size, I get the correct results - the camera *reports* > > that its size has now been changed... > > > ...however, the size of the byte array I'm receiving in the > > onPictureTaken() callback is only consistent with the camera's default > > (enormous) image - and forces an OutOfMemoryError when I attempt to > > decode it into a bitmap! > > > It looks like I'm having a similar issue to this > > user:http://groups.google.com/group/android-developers/browse_thread/threa... > > - but unfortunately it looks like no solution was found then, either : > > ( > > > Does anyone have any ideas...? > > -- 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