public void stop() { gameLaunch.stopAndDispose(); try { thread.join(); } catch (InterruptedException e) { // Should never happen e.printStackTrace(); } thread = null; gameLaunch.graphics.surfaceHolder = null; }