I'm developing a small Android app and am having trouble with one small feature. I want to have a button invoke a series of Dialogs that the user can select a series of options for. For example, pressing the button will bring up a Dialog with 2 choices, pressing either of those choices will open another dialog with 2 more choices. When the user presses a button there, I want the 2 choices to be remembered somewhere.
I initially approached it by making 2 classes that extend DialogFragment and then showing DialogFragment #2 after a choice has been made in #1 but it seems a bit messy and I can't seem to save the 'path', ie: I want an int ranging from 0 to 4 representing the possible paths they could have done with 2 buttons in Dialog #1 and 2 buttons in Dialog #2, so essentially #2 would have to know what choice was made from #1.
Any tips? Cheers.