I'm figuring out how to save my Xamarin.Forms app's instance data. To make sure I understood when the override'd MainActivity methods are called, I implemented OnStop(), OnDestroy(), and OnSaveInstanceState() so that they simply call System.Diagnostics.Debug.WriteLine("methodName"), and then base.methodName;
Looking at the Output, though, I don't seem to be getting OnSaveInstanceState when I expect: it only gets called when the app is backgrounded, i.e. when I push the Overview or Home buttons. I do not get it when I push the Back button, though I still get the messages from OnStop and OnDestroy. Furthermore, when the screen rotates, I don't get any of the three events, and the app does not apparently get interrupted, even though there is supposedly some Activity destruction/creation that's supposed to happen.
What is going on? Is this some quirk of the Xamarin/VS debug environment? Has this been recently changed in Android and the documentation hasn't kept pace?
Using VS 2017, Samsung Galaxy S7 w/ Android 7