I have an app that opens to a screen with a couple of buttons. When I click on one button I start a new screen
public void toGrid(View view) {
Intent intent = new Intent(this, GridActivity.class);
startActivity(intent);
}
This second screen holds a bunch of running timers and Spinners that have certain values that can be selected.
My problem is that if I accidentally hit the back (not home) button on my phone I lose all my information from the secondary screen.
Is there a way that I can keep this information so that I would have to hit the back button on my phone from the main (initial) screen to lose the settings?
The other option would be to capture the "back" event from the secondary screen and put up some sort of "Are you sure" dialog.