D
Deleted member 103
Guest
Hi,
can one add a pause in sub "Activity_Pause" so that certain operations are executed before the function "ExitApplication"?
I ask because I want to be sure that certain services have been terminated.
Is this possible? Here's an example.
Or is there another possibility to wait until the service were to quit?
can one add a pause in sub "Activity_Pause" so that certain operations are executed before the function "ExitApplication"?
I ask because I want to be sure that certain services have been terminated.
Is this possible? Here's an example.
Or is there another possibility to wait until the service were to quit?
B4X:
Sub Activity_Pause (UserClosed As Boolean)
If UserClosed Then
'Service beenden
CallSub(smCrono, "Service_Stop")
CallSub(smAtomtime, "Service_Stop")
CallSub(Starter, "Service_Stop")
Sleep(200) 'I do not know whether this time is sufficient.
ExitApplication
End If
End Sub