public void destroy() { if (app != null) { app.destroy(); } if (finishOnAppStop) { finish(); } }
/** * Called by the android alert dialog, terminate the activity and OpenGL * rendering * * @param dialog * @param whichButton */ public void onClick(DialogInterface dialog, int whichButton) { if (whichButton != -2) { if (app != null) { app.stop(true); } app = null; this.finish(); } }