How to obtain bitmap from camerapreview and draw on canvas

All your problems with Audio, Video and Images.

How to obtain bitmap from camerapreview and draw on canvas

Postby androiduser123 » Sat May 16, 2009 12:22 pm

Hi there,

Please let me know how to obtain bitmap from camerapreview? I tried using onPictureTaken(byte[] data, Camera camera) of PictureCallback and decoding data using BitmapFactory.decodeByteArray.

I then displayed using canvas.

I ran successfully in emulator but on G1 device it is displaying a blank screen.
Please help.
Junior Developer
Junior Developer
Posts: 13
Joined: Tue May 12, 2009 7:20 am


Hi androiduser123!

Postby vili07 » Fri Jul 24, 2009 9:40 am

I have the same problem with you. Can you fix it ? Please tell me about it.

P/S: You can send it to me by email:
Posts: 3
Joined: Wed Jun 17, 2009 10:16 am

Postby Beros_ » Fri Jan 29, 2010 5:01 pm

Hi guys!

I also have same problem.

I would like to render something on camera screen, something like arrows or some controls.

Like in this application for barcode scanner: ... re=related
Posts: 7
Joined: Fri Jan 29, 2010 4:29 pm
Location: Croatia


Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 6 guests