I made a small program to check the location periodically, and then do something according to the location.
The program was doing fine in last 10 days.
But today, it stopped working.
I found that the ConnectionSuccess event did fire. But it never went to the LocationChanged event.
In the main activity I asked for permission of fine location, but in the service, for FusedLocationProvider, I only want balanced power accuracy.
However, when I use another GPS app,
the LocationChanged event will fire immediately when that app gets a fix.
I don't know what's wrong.
The program was doing fine in last 10 days.
But today, it stopped working.
I found that the ConnectionSuccess event did fire. But it never went to the LocationChanged event.
In the main activity I asked for permission of fine location, but in the service, for FusedLocationProvider, I only want balanced power accuracy.
B4X:
rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCATION)
LocationRequest1.SetPriority(LocationRequest1.Priority.PRIORITY_BALANCED_POWER_ACCURACY)
However, when I use another GPS app,
the LocationChanged event will fire immediately when that app gets a fix.
I don't know what's wrong.