From this tutorial:
https://www.b4x.com/android/forum/t...ing-a-region-in-the-background.84767/#content
As far as I know, CallSubDelayed will launch the routine AddGeofence only upon completion of the current routine.
Is that piece of code correct? And... "why"?
[I haven't tried that code; maybe I'll do it, just out of curiosity, it's interesting.]
https://www.b4x.com/android/forum/t...ing-a-region-in-the-background.84767/#content
B4X:
CallSubDelayed3(GeofenceService, "AddGeofence", Me, geo)
Wait For Geofence_Added (Success As Boolean)
Log("Geofence added: " & Success)
End If
End Sub
As far as I know, CallSubDelayed will launch the routine AddGeofence only upon completion of the current routine.
Is that piece of code correct? And... "why"?
[I haven't tried that code; maybe I'll do it, just out of curiosity, it's interesting.]