StateManager.SetSetting ("Sound_Flag",Sound_Flag) 'Get the current value of Sound_Flag
StateManager.SetSetting ("Beep_Flag",Beep_Flag) 'Get the current value of Beep_Flag
StateManager.SetSetting ("Dollar_Flag",Dollar_Flag) As String 'Get the current value of Dollar_Flag
StateManager.SaveSettings ' Saves the settings above
End Sub
Sub Activity_Create(FirstTime AsBoolean)
...
StateManager.loadStateFile
Sound_Flag=StateManager.GetSetting2("Sound_Flag", 1) ' Sets Sound_Flag to the saved value
Beelp_Flag=StateManager.GetSetting2("Beep_Flag", 1) ' Sets Beep_Flag to the saved value
Dollar_Flag=StateManager.GetSetting2("Dollar_Flag", 1) ' Dollar_Flag to the saved value