I want to add GLSurfaceView to SurfaceView.

by Ring » Mon, 02 Nov 2009 15:00:57 GMT


Sponsored Links
 public class CameraStream extends Activity {

        private Preview preview;
        private GLSurfaceView mGLSurfaceView;

        /** Called when the activity is first created. */
        @Override
        public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);

                // 
                requestWindowFeature(Window.FEATURE_NO_TITLE);

                 preview = new Preview(this);
                 setContentView(preview, new ViewGroup.LayoutParams(200, 200));

                // overview = new OverView(this);
                // addContentView(overview, new ViewGroup.LayoutParams(-1, -1));

                 mGLSurfaceView = new GLSurfaceView(this);
                 mGLSurfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 0);
                 mGLSurfaceView.setRenderer(new CubeRenderer(true));
                 mGLSurfaceView.getHolder().setFormat(PixelFormat.TRANSLUCENT);

                 addContentView(mGLSurfaceView, new ViewGroup.LayoutParams(-1, 
-1));
        }
}

SurfaceView under GLSurfaceView is displayed when describing it like
this.

I want to have them display GLSurfaceView on SurfaceView.

--



Other Threads

1. Ipv6 support - dalvik/vm/Properties.c

Hi All

In Eclair code base under dalvik/vm/Properties.c I am seeing
java.net.preferIPv6Addresses set to true.
With this If i run CTS test cases all related to socket address and
local address are failing.

Is this means that phone is not supporting ipv6?

If i make java.net.preferIPv4Stack to true all CTS cases are getting
passed.

My understanding from the above is if we want to support IPv6 then we
have to make it to true. In Donut this flag is not set and also
java.net.preferIPv4Stack.

I am not getting in Donut code where one of these flags are set and
when?

Please redirect me if this is not correct group to ask this question.

Thanks
Gururaja B O

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

2. Tab reload data

Hi,


I have created Tab using following example:
http://developer.android.com/resources/tutorials/views/hello-tabwidget.html

Now i need to tab content data when use view( Click on Icon). Is it possible
to reload *ListAdapter?


Thanks,
Chandana
*

-- 

3. How to check the version of my application on the android market programatically

4. Why Android is using alsa device in block mode?

5. Android:Image Not Displayed In WebView

6. Experienced Developer needed ASAP in the Paris Area

7. How to check the version of my application on the android market programatically