Sub Activity_Create(FirstTime As Boolean)
...
StartActivity (Synch)
Activity.Finish
' here the activity synch should start to run
Basis.debuginfo ("Before stay=" & stay & " Script=" & script,False)
If stay = False Then
Basis.debuginfo ("should start activity camera",False)
If script="Draw/" Then StartActivity (Draw) Else StartActivity (Kamera)
' but I see that activity Kamera starts
script=""
Activity.Finish
Activity.Finish as well as StartActivity send a message to the internal message queue. Once the message is processed the activity will be finished or the next activity will be started.
You should add a Return call if you don't want to code to be executed.