I am yet try  the solution,which Nick has mentioned.
Meanwhile,i was trying another thing,where am not actually,stacking
the surfaceviews(one over the other),
but have created a layout in such a way that,they should come side by
side.But,still,am able to view
only one surfaceView content.The WHITE PATCH gets displayed on the
other which actually should render
 a video content.Heres the layout design,
**********************************************************************************************
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    >

    <LinearLayout
        android:id="@+id/video"
        android:layout_width="300px"
        android:layout_height="fill_parent"
        android:orientation="horizontal" >

        <SurfaceView
            android:id="@+id/surface"
            android:layout_width="match_parent"
            android:layout_height="fill_parent"
            android:layout_margin="2px" />

    </LinearLayout>

    <RelativeLayout
        android:id="@+id/cam"
        android:layout_width="186px"
        android:layout_height="144px"
        android:layout_alignParentRight="true"
        android:orientation="horizontal"
        android:padding="15px" >

            <FrameLayout
                android:id="@+id/preview"
                android:layout_width="186px"
                android:layout_height="144px"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:padding="2px" >
            </FrameLayout>

    </RelativeLayout>

</RelativeLayout>
******************************************************************************************************
Am i missing something..???..:(

Regards,
-Rajeev

On Nov 15, 10:19 am, Dianne Hackborn <[email protected]> wrote:
> On Mon, Nov 14, 2011 at 4:36 AM, Nickw <[email protected]> wrote:
> > I (and others, e.g. look athttp://nhenze.net/?p=172) have managed to
> > get this to work with an OpenGL surface view layered on top of a
> > camera feed surface view. It works (on my test system) if (counter-
> > intuitively) the OpenGL view is added *before* the camera feed.
> > However, two or three times on this newsgroup, Google employees have
> > stated that it isn't guaranteed to work.
>
> This is not guaranteed to work. :)  It is completely undefined what Z order
> you will end up with surface views that are of the same type.  There is
> nothing in the code trying to control what order they appear in; the result
> you get is entirely based on arbitrary luck.
>
> The only control you have over z ordering are these:
>
> http://developer.android.com/reference/android/view/SurfaceView.html#...)
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to