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. */
        public void onCreate(Bundle savedInstanceState) {


                 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));

                 addContentView(mGLSurfaceView, new ViewGroup.LayoutParams(-1, 

SurfaceView under GLSurfaceView is displayed when describing it like

I want to have them display GLSurfaceView on SurfaceView.


Other Threads

1. Me, Android, & Google guide you :-)

sekedar info, utk pemakai a10, tidak perlu instal lagi, sudah built in
aplikasi flight status khas garmin...pemakai garmin xt di nokia pasti



2. New mailing list for Android Audio Developers

Hi everyone!

I am glad to announce the creation of the andraudio mailing list, dedicated to
audio development on Android, at: andrau...@music.columbia.edu

More info and subscribing: http://music.columbia.edu/mailman/listinfo/andraudio

This list is meant to be a place to discuss about audio development, in the
context of music and sound applications, but also games and other apps which use
audio on Android.

Discussions and questions about both Java and native APIs are welcome.

In addition to application-level topics, we are interested in discussing about
Android audio system internals, for educational purposes, as well as finding new
ways to work with sound on Android.

So please come and join us if audio development on Android interests you.




4. Resource missing error, but its there.

5. Android C2DM

6. OOT: Miring di Grand Indonesia

7. Android Development Income Tax Question