camera stopPreview

All your problems with Audio, Video and Images.

camera stopPreview

Postby matth1as » Tue Nov 23, 2010 12:28 pm

Hi,

I have got a Problem:

I have a surfaceView and call camera.startPreview() ...

after a few seconds I call camera.stopPreview() and the preview stops, but the surfaceView is turning into black :(

I want the surfaceView to display the last "previewFrame", is this possible ?
matth1as
Freshman
Freshman
 
Posts: 8
Joined: Mon Oct 11, 2010 7:45 pm

Top

Re: camera stopPreview

Postby spengilley » Tue Nov 23, 2010 4:20 pm

Hi there,

From what I can make out you use the takePicture method of the Camera class which then leaves you with the frozen snap on the screen. You can disregard the image the camera has taken if you don't want it.

I am new as an Android developer though so you may want to wait for America to wake up to see if more experienced developers have any suggestions

Stephen
spengilley
Junior Developer
Junior Developer
 
Posts: 18
Joined: Tue Sep 07, 2010 9:14 pm

Re: camera stopPreview

Postby matth1as » Tue Nov 23, 2010 4:47 pm

Hi, thanks for your answer.

the Problem is, i don't want to use TakePicture because it takes too long and I really don't need a "full Picture"
matth1as
Freshman
Freshman
 
Posts: 8
Joined: Mon Oct 11, 2010 7:45 pm

Re: camera stopPreview

Postby matth1as » Thu Nov 25, 2010 11:09 pm

no ideas ?
matth1as
Freshman
Freshman
 
Posts: 8
Joined: Mon Oct 11, 2010 7:45 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 14 guests