Dealing with changing orientation for the first time. Not working for me. Have been studying the tutorial. In the sample code:
StateManager.SaveSettings never does anything because settings.IsInitialized is always false. I cannot find anything in the Main module example that would ever initialize settings.
Probably missing something simple.
B4X:
Sub Activity_Pause (UserClosed As Boolean)
If UserClosed Then
StateManager.ResetState("Main")
Else
StateManager.SaveState(Activity, "Main")
End If
StateManager.SaveSettings
End Sub
StateManager.SaveSettings never does anything because settings.IsInitialized is always false. I cannot find anything in the Main module example that would ever initialize settings.
Probably missing something simple.