you wil have to save the a value, like ShowSplashScreen. You can do this for example with the statemanager or keyvaluestore will be an other possibility. The statemanger can save the state of UI-Elements or something else (String-String-pairs). In your case you need to save a value and not the checkbox UI-state! something like:
B4X:
StateManager.setSetting("showSplashScreen", "yes")
StateManager.SaveSettings
...
Dim state As String = StateManager.GetSetting("showSplashScreen")
If state = "yes" Then
'show activity splash
End If
Sub Activity_Create (FirstTime As Boolean)
activity.loadLayout("Layout1")
StateManager.RestoreState(Activity, "Main", 60)
If Checkbox1.Checked = False Then
StartActivity(" Main")
Else
StartActivity("SecondActivity")
End If
End Sub
Sub Activity_Pause (UserClosed As Boolean)
StateManager.SaveState(Activity, "Main")
StateManager.SaveSettings
If Checkbox 1.Checked = True Then
Activity.Finish
End If
End Sub
I'm starting to enjoy this B4a
it's basically clean code.