A way to know that the activity resume is triggered

drachmad

Member
Licensed User
Longtime User
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.
 

drachmad

Member
Licensed User
Longtime User
Hi NJDude, thanks for your prompt reply.
It seem I search with wrong keyword, it should be "pause" and not "resume".
It works as expected. Thanks again.
 
Upvote 0
Top