Back to project page OpenGL-Sample-Android.
The source code is released under:
GNU General Public License
If you think the Android project OpenGL-Sample-Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.soft.wz.sample; /*from ww w . ja v a 2 s . c o m*/ import android.app.Activity; import android.opengl.GLSurfaceView; import android.os.Bundle; public class MainActivity extends Activity { private GLSurfaceView glSurfaceView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); glSurfaceView = new RenderView(this); setContentView(glSurfaceView); } @Override protected void onPause() { glSurfaceView.onPause(); super.onPause(); } @Override protected void onResume() { glSurfaceView.onResume(); super.onResume(); } }