Is there a way to tell the view or renderer to stop what it's doing and start cleaning up?
My problem is that I'm currently calling finish() in the graphics activity to go back to my initial activity that started the graphics activity. What appears to be happening is my initial activity gets the result and starts processing while the screen still shows the graphics (as I imagine it's destroying the surface and all that fun stuff).
*EDIT* I should add that there is a very large 3D object I'm drawing, hence the issues
What I would like to do is somehow say "myRenderer.cleanUp()" and then in the onSurfaceDestroy() call ((Activity) context).finish().
( I realize "cleanUp()" is a fake method" ).
Is there any way to do this? Does anyone else close down a graphics activity to go back to a calling activity? How do you do this cleanly?
Thanks in advance.