[android-developers] Re: Using 2 Surface Views in same activity

2009-04-17 Thread Girish

Hi Dave and others,

Any other alternative for acheiving this you can suggest ?

Regards


On Apr 16, 1:45 am, Dave Sparks  wrote:
> I'm pretty sure that this will not work. There is a limit of one video/
> camera SurfaceView active at a time.
>
> On Apr 15, 3:52 am, iblues  wrote:
>
>
>
> > Hi,
>
> > I am creating an application where I have2SurfaceViews (1 each in
> > top and bottom half of the screen) along with a button. One of the
> >Surfacewill 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 asurfacebe actually created? And how can I
> > accomplish this UI without using Intents?
>
> > Regards,
> > iblues- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Using 2 Surface Views in same activity

2009-04-15 Thread Dave Sparks

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

On Apr 15, 3:52 am, iblues  wrote:
> 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
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---