This is harder than it sounds, which is why I'm asking for solutions.
Basically I only want the disclaimer Toast shown once per run of the app.
The app is in two parts, all are Activities. It's shown when it starts in the first part, but you can hit a menu button taking you to the second part of the app, which has another menu button to take you back to the first.
The problem is that whatever initial settings you try to make in the first part, when it starts up, are run again when returning from the second part of the app, so it'll show again.
My last idea was that in the first part's onDestroy(), when the app exits, but is not the case in this situation, you set a boolean in settings, to reset that the disclaimer can be shown, but apparently, onDestroy() is called on the first part before it goes to the second part.
Or, if you can get it to not show the first run, but behave properly every time after that, that would be okay.
And there doesn't seem to be any method to be called when the app truly is "killed", if there was that would be the way to do it, you could reset it there. Or if there was a method that was only called when the app first started..
Thanks!