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. Creating the request to a webservice by kSoap2


I have a few blog posting regarding using Ksoap2, mine is in the
context of interfacing with Salesforce CRM using Webservice, hope it



2. Sold wts milestone 2 nd

Dear rekan rekan,

Sold ke rekan yg sudah nelpon dan transver langsung.bingung yang mana yg
deal...krn mepet mepet semua yg akan deal.mohon maaf kepada rekan rekan yg
mungkin agaj kecewa sebab saya bingung semua pada ingin menyatakan deal.
Sekali lagi terima kasih.

sent from milestone 2.1
with G.O.T.open recovery

"Indonesian Android Community [id-android]" 

3. Calling view from activity鈥檚 count down timer

4. Memory store for long term processing

5. Launching my "About" screen from Preferences

6. Map Key

7. Android tablets go mass market