stupid camera.startPreview question

by enervatron » Wed, 27 May 2009 04:19:05 GMT


Sponsored Links
 Hi all,

I'm using the camera for which I've used the CameraPreview example.
All is working just fine --
I'm getting pictures, etc, but when I spin up the SurfaceView  and
startPreview on it (directly
from the example code) the screen is just blank.

Question: shouldn't I be seeing a preview of the view field when I'm
in this mode just like
the system camera app? If so, why would the surfaceview be black/blank?

Mike

--~--~---------~--~----~------------~-------~--~----~



stupid camera.startPreview question

by Max Salley » Wed, 27 May 2009 04:56:19 GMT


 Whatever SurfaceHolder you gave the camera needs to have its type set
to SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS.  This may not be your
problem, but it will cause a blank screen



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


stupid camera.startPreview question

by enervatron » Wed, 27 May 2009 05:32:45 GMT


 yes, the sample code does this, and hence my code is doing it as well.

Mike





--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. android 10

Rekan2 mau tanya ttg android syukur2 kalo ada 101 nya 
Krn pengetahuan saya ttg android cethek sekali 

Setahu saya ttg android hanya lah android itu os, dan perangkst yang 
mengaplikasi khan cuma htc 


TIA
Regard's


Ferry Kurniawan
Property Agent - Jual Beli Sewa Jogja & sekitar
Telp : 081. 82. FERRY ( 33779 )

-- 
"Indonesian Android Community [id-android]" 

2. mau tanya?

halo bro n sist........

btw ad gk yah pemakai android yg tinggal di jambi???/

jd kn bisa share mslh android scr langsung.....

-- 
"Indonesian Android Community [id-android]" 

3. report setelah upgrade cm beta4

4. How to keep WiFi from going to sleep?

5. rogue setting of device_provisioned, issue 4358

6. unicode chars not being dispatched from IM

7. Unable to parse hprof dump with MAT?