INNER CODE UNIT · Java
onPause
githubhaohao/NDK_OpenGLES_3_0 · app/src/main/java/com/byteflow/app/MainActivity.java:251
protected void onPause() {
super.onPause();
mSensorManager.unregisterListener(this);
if (mAudioCollector != null) {
mAudioCollector.unInit();
mAudioCollector = null;
}
}
@Override
protected void onDestroy() {
super.onDestroy();
mGLRender.unInit();
/*
* Once the EGL context gets destroyed all the GL buffers etc will get destroyed with it,
* so this is unnecessary.
* */
}