In my MainActivity I have buttons which allow me to open other activities, and, inside of these, I have more buttons that open more activities…
The question is this:
When I am, let's say, in the third sub-level of activities, I have added a menu_button that allows me to go back to the MainActivity. But, when I click it, the MainActivity opens, but it obviously does not close the others. How can I do that?
This is the current block of code that makes the jump:
case Resource.Id.home:
Intent intent = new Intent (this, typeof(MainActivity));
this.StartActivity(intent);
return true;