I test that and nothing in log for CallSub ou CallSubDelayed
B4X:
Sub GPS_LocationChanged (Location1 As Location)
LogColor("StartService location change", Colors.Red)
CallSubDelayed2(Main2, "LocationChanged", Location1)
' CallSub2(Main2, "LocationChanged", Location1)
End Sub
Find the problem.
My device is very near from my computer desktop and then causing interference with my gps device. When my device is going out from my computer, the locationchange is working normaly.