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. 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

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

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

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

Gururaja B O

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

2. Tab reload data


I have created Tab using following example:

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



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