I know Erel doesn't like it, but you could use ExitApplication which forces the app to close (FirstTime should be true on subsequent runs)
Well, I do like it, as for now ExitApplication releases me from some unwanted behaviour that i couldn't otherwise correct.
My current project shows data from an CSV-file into a choice of three listviews of which one at a time is shown (using the Visible parameters). From this listview a choice is made for an item that then will be shown for all fields of that item in a new listview. After the user closes this view, it returns to the former.
This all works well, except when the app gets closed by the user with the BACK-key and then restarted from the icon or from the recent apps list.
Then, when an item is selected and the second list pops up, I get an error message which states that an index of an array I keep track off is out of bound, although it should have reinitialized to 0 and I have no idea why the program is getting into the routine that uses the variable.
I see the same behaviour and exact the same error either if I show the second list in a separate activity or if I show the second list in the same activity but in a different panel.
ExitApplication, as for now, solved this problem for me. I just wonder what really is the problem, though.