I managed to create a secondary Activity, but now I wonder how I can close it again.
public void button_onClick(View v){
finish();
}
works when I’m dealing with just one Activity at a time, but how do I let the secondary Activity close the entire application?
You don’t “close the entire application” in Android, any more than you “close the entire application” in a Web app. See this answer for more on this topic.