Loris Anoardi Member Licensed User Longtime User Mar 4, 2016 #1 In a module service how can i detect which is my active activity with a for each cycle?
DonManfred Expert Licensed User Longtime User Mar 4, 2016 #2 Create a list Add all Activitienames to the list In your Service you iterate through the list and check each entry if the Activity is running or not (IsPaused(Main)) Upvote 0
Create a list Add all Activitienames to the list In your Service you iterate through the list and check each entry if the Activity is running or not (IsPaused(Main))
Loris Anoardi Member Licensed User Longtime User Mar 4, 2016 #3 thanks but i didn't found any example to get it. For each X as object in ...(Activities ??) Upvote 0
DonManfred Expert Licensed User Longtime User Mar 4, 2016 #4 B4X: Dim activities() As Object = Array(Activity, Act2) For Each m As Object In activities If IsPaused(m) = False Then CallSub(m, "Subname") End If Next Upvote 0
B4X: Dim activities() As Object = Array(Activity, Act2) For Each m As Object In activities If IsPaused(m) = False Then CallSub(m, "Subname") End If Next