In log there is always a log: ** Activity (main) Resume **
So that there is a better way to detect it than the algorithm below.
In Main Activity:
Sub Process_Globals
Dim bReady As Boolean
End Sub
Sub Activity_Resume
bReady = True
End Sub
Sub Activity_Pause (UserClosed As Boolean)
bReady = False
End Sub
In a Service:
If Main.bReady then
...
End if
Thanks for any reply.
So that there is a better way to detect it than the algorithm below.
In Main Activity:
Sub Process_Globals
Dim bReady As Boolean
End Sub
Sub Activity_Resume
bReady = True
End Sub
Sub Activity_Pause (UserClosed As Boolean)
bReady = False
End Sub
In a Service:
If Main.bReady then
...
End if
Thanks for any reply.