Does anyone know how to properly close an activity that is extending a surfaceview once it's no longer needed? I have my activity/surfaceview load a new activity but if the player hits the back button it throws an error. So I thought I'd call onDestroy in the new activity for the activity thats handling the surfaceview but it doesn't seem to close it. I overrided the back button as a temp fix but know it's bad code to not close an activity that isn't being used.
Here's what I was trying to do: