Sub Process_Globals
Dim tbState As Boolean = False
End Sub
Sub Activity_Create
'load layout
Togglebutton1.Checked = tbState
End Sub
Sub Activity_Pause
tbState = ToggleButton1.Checked
End Sub
I wanted to use the module "StateManager" to save the state if the application closed, but do not know how to save the state of only one component and not the entire Activity