Tests whether the given component is paused. Will also return true for components that were not started yet.
Example:
If IsPaused(Main) = False Then CallSub(Main, "RefreshData")
It doesn't seem to make a difference if the activity is not started yet, paused, or terminated. It is not active. So there is a variety of things you can do.
B4X:
If IsPaused(Main) Then
'Show a message
ToastMessageShow("Activity Main is not active", True)
'Wake the activity up
StartActivity(Main)
'or any other action
End If
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.