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

hi all,

i did one project, in that i encrypt message using asymmetric key, and
when i send this encrypt message to emulator, the length and character
of encrypt message was changed, i couldn't understand where i did
please some one help me, how can i solve this problem.

Thanks in advance


2. Question of using ksoap for android to call webservices

I am trying to develop an android application using our webservice.

Here is the code:

        private String SOAP_ACTION= "http://.../TestFunction";
        private String METHOD_NAME = "TestFunction";
        private String NAMESPACE = "http://.../";
        private String URL = "http://.../webservice.php";

                   SoapObject request = new SoapObject(NAMESPACE,
        SoapSerializationEnvelope envelope = new

        HttpTransport  androidHttpTransport = new HttpTransport(URL);
        androidHttpTransport.call(SOAP_ACTION, envelope);

The testfunction is a function without any parameters or return
values. It is tested correctly using other applications.
As long as calling to the last line of code, the emulator exited.
I tried Eclipse, Ksoap2 in both Windows and Ubuntu.

Can anyone help? Many thanks!

Some small questions:
1) do i need to use "....php?wsdl" in URL?
2) do i need to use explict IP address in URL?
3) should I use androidhttptransport? Is it in the ksoap for android?
i downloaded but the JAR generates a compile error.
4) Is there any specific requirement for the webservices?


3. Question on memory management in android

4. Diabling WiFI or 3G for a given application

5. connectivity manager

6. How do you Debug a Live Wallpaper

7. webview show map problem?help me