Hi Sujay,

Sorry, I can't give you the code, but maybe the following info will
help:

* follow the sample code at:
http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.html
* see API docs at: 
http://developer.android.com/reference/android/hardware/Camera.html
    * Set the size by getting paramaters, changing them, and then
setting them back
         * e.g. camera.getParameters() and camera.setParameters(...)


On Jun 1, 10:32 pm, Sujay Krishna Suresh <sujay.coold...@gmail.com>
wrote:
> hi sheado,
>               can u post the code that u r using?? as of now i'm only using
> the in-built camera appln...
> where i'm not able to set the size of the image.... could u help me out with
> setting image size on this app...
> or can u plz post the code that u r using to make use of the camera api???
> it'd b very useful for me...
> N if i find out y u hv this prob i'll definitely let u no.... thnx in
> advance....
>
>
>
> On Tue, Jun 2, 2009 at 10:51 AM, Sheado <chad...@gmail.com> wrote:
>
> > Howdy Peoples,
>
> > When I set the camera picture size to 176x144 or 352x288 the camera
> > preview gets garbled/discolored "after" (it's fine at first)
> > onPictureTaken (onPictureTaken calls startPreview after saving the
> > JPEG in order to restart the preview). This does not happen with any
> > other resolution I set (e.g. 1280x720 or 1920x1080). The actual
> > picture taken is fine - just the preview display is messed up.
>
> > I've tried everything I could think of -- revalidating the
> > surfaceholder, removing and re-adding it, resetting the camera picture
> > size, preview size -- but nothing.
>
> > I am stuck. Any suggestions? or Is this an android bug? or is it me?
> > =)
>
> > Thanks!
>
> --
> Regards,
> Sujay
> George Bernard 
> Shaw<http://www.brainyquote.com/quotes/authors/g/george_bernard_shaw.html>
> - "A government that robs Peter to pay Paul can always depend on the
> support of Paul."
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to