If you want to reset a game, you don't want to "close the game" and restart it within the application.
To achieve the reset, just reset any variables back to the default.
I am going to assume you have an array of aliens, where you first put the aliens in the array, you could put it into a new method
1 2 3 4 5 6 7 8 9
| public void createLevel(){ aliens = new Alien[levelSize]; for(int i = 0; i < levelSize; i++){ alien[i] = new Alien(); } } |
something like that, and you can create new levels of any size pretty fast.
Edit: Ninjad, I hate formatting inside the post, so I always open up eclipse to format

just as i finished the code you posted it, but it was to much effort to delete!