return graphics.getView();\r
}\r
\r
- @Override protected void onPause () { \r
- Log.d("Test", "activity pause");\r
+ @Override protected void onPause () { \r
graphics.pause(); \r
\r
- if (isFinishing()) { \r
- Log.d("Test", "activity destroyed");\r
+ if (isFinishing()) { \r
graphics.clearManagedCaches();\r
graphics.destroy();\r
}\r
if (graphics.view instanceof android.opengl.GLSurfaceView) ((android.opengl.GLSurfaceView)graphics.view).onResume();\r
} \r
\r
- if (audio != null) audio.resume();\r
- Log.d("Test", "activity resume");\r
+ if (audio != null) audio.resume(); \r
if(!firstResume)\r
graphics.resume();\r
else\r
}\r
\r
@Override protected void onDestroy () {\r
-// graphics.destroy();\r
audio.dispose();\r
super.onDestroy();\r
}\r