Using 2 Surface Views in same activity

by iblues » Wed, 15 Apr 2009 18:52:21 GMT


Sponsored Links
 Hi,

I am creating an application where I have 2 Surface Views (1 each in
top and bottom half of the screen) along with a button. One of the
Surface will be displaying a camera preview.

The purpose of the action is to swap the preview between each frame.

The problem I am facing is only one SurfaceView's surfaceCreated()
callback is being called. So when I try to set the other SurfaceView
for the camera preview, I get error as it is still not yet created.

My question is when will a surface be actually created? And how can I
accomplish this UI without using Intents?

Regards,
iblues
--~--~---------~--~----~------------~-------~--~----~



Using 2 Surface Views in same activity

by Dave Sparks » Thu, 16 Apr 2009 04:45:36 GMT


 I'm pretty sure that this will not work. There is a limit of one video/
camera SurfaceView active at a time.



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


Sponsored Links


Using 2 Surface Views in same activity

by Girish » Fri, 17 Apr 2009 15:29:06 GMT


 Hi Dave and others,

Any other alternative for acheiving this you can suggest ?

Regards





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



Other Threads

1. Ported android patches to 2.6.31. Boots fine with non android FS. Panics with Android FS (images)

Hi Shivappa,
Can you post the Kernel messages before going to panic.

Regards,
Sreekanth




-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Boot from SD card

Hi,

I just compiled Android and I want to put files on SD card in order to
make it starting up.  Is there any procedure?

regards,



Frederic

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Hero ku kok di people nya kontak facebooknya ga ada yah?

4. Flashing Android 2.0 on G1

5. add 3rd module Issue

6. Random phone restarts, anyone else experience this?

7. Turning OFF the copy protection on Market. Still any known issues?