I'm becoming crazy ..
As I start the program, I have to check if a file exists. If not I want to end the activity and start another one.
Below the code. The file does not exist, I see "Nomaps" in the log, but also "why am I here ?"
It seems that after the Activity.finish some lines of code are executed, before the activity is really finished and started the other one.
Any help ?
Marco
Sub Activity_Create(FirstTime As Boolean)
If File.Exists(File.DirRootExternal & "/test.map") =False Then
Log("Nomaps")
Activity.Finish
StartActivity(NoMaps)
End If
Log("why am I here ?")
As I start the program, I have to check if a file exists. If not I want to end the activity and start another one.
Below the code. The file does not exist, I see "Nomaps" in the log, but also "why am I here ?"
It seems that after the Activity.finish some lines of code are executed, before the activity is really finished and started the other one.
Any help ?
Marco
Sub Activity_Create(FirstTime As Boolean)
If File.Exists(File.DirRootExternal & "/test.map") =False Then
Log("Nomaps")
Activity.Finish
StartActivity(NoMaps)
End If
Log("why am I here ?")