If IsPaused(Main) = False Then
ToastMessageShow("Activity 'Main' is active", True)
End If
If IsPaused(Activity2) = False Then
ToastMessageShow("Activity 'Activity2' is active", True)
End If
If IsPaused(Activity3) = False Then
ToastMessageShow("Activity 'Activity3' is active", True)
End If