Thank you very much! Now it works! in the emulator BUT on my G1 it
shows only black screen.
The problem possibly caused by using GLSurfaceView (from the API
Demos) as a preview surface. Is it possible to avoid that?

On Dec 19, 10:54 pm, blindfold <[email protected]> wrote:
> > Is it possible to capture camera snapshots to bitmaps WITHOUT creating
> > a visible surface view? All samples I saw over internet uses camera
> > preview directly to a surface view and the surface view underneath
> > must be visible.
>
> Just do not use setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS) and
> the preview remains invisible. (The surface view itself may be
> visible, but now without the camera preview, so you have full control
> over what you display.)
>
> > I need a way to capture camera images in the background and only then
> > show captured images somewhere on the screen. Is it possible?
>
> Yes, my app athttp://www.seeingwithsound.com/android.htmdoes exactly
> that.
>
> Without the SURFACE_TYPE_PUSH_BUFFERS, the preview callback will still
> give you the (header-less) image data[] that you can use to fill a
> Bitmap, although you must use your own (very slow, pixel-by-pixel)
> preview decoder for that because Android SDK 1.0r2 is still lacking
> any support for preview decoding. The bitmap can then be drawn to a
> Canvas for display at any size and anywhere on the screen.
>
> Regards
>
> On Dec 19, 4:35 pm, Boshik <[email protected]> wrote:
>
> > Hi Guys,
>
> > Is it possible to capture camera snapshots to bitmaps WITHOUT creating
> > a visible surface view? All samples I saw over internet uses camera
> > preview directly to a surface view and the surface view underneath
> > must be visible.
>
> > I need a way to capture camera images in the background and only then
> > show captured images somewhere on the screen. Is it possible?
>
> > Thanks,
> > Alex
--~--~---------~--~----~------------~-------~--~----~
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