Hello, everyone! I have a problem that I can't solve and maybe someone here has an idea how to solve it.
Locating with the FusedLocationProvider works quite well when you are outdoors with a vehicle. My problem occurs when the device is not moved. Either when the vehicle has been parked, or when the device is inside a building and is not moved. In both cases I would like the "LocationChanged"-event of the FusedLocationProvider not to be triggered if I had set 50 meters as the minimum distance for a location update.
However, this is not the case. Even with a set minimum distance of 50 meters a "LocationChanged"-event is triggered although the device was not moved. I suspect this is because the FLP uses the positions of surrounding WiFi access points. These access points could be more than 50 meters away and therefore the condition for a "LocationChanged"-event would be fulfilled.
This leads to unwanted effects like "star formation" on the map.
My first idea was to discard location updates that do not have GPS as provider. However, it seems to be impossible to determine the provider of an FLP position, so my problem remains. Well, maybe someone here has another approach that could help me. Thanks in advance.
Locating with the FusedLocationProvider works quite well when you are outdoors with a vehicle. My problem occurs when the device is not moved. Either when the vehicle has been parked, or when the device is inside a building and is not moved. In both cases I would like the "LocationChanged"-event of the FusedLocationProvider not to be triggered if I had set 50 meters as the minimum distance for a location update.
However, this is not the case. Even with a set minimum distance of 50 meters a "LocationChanged"-event is triggered although the device was not moved. I suspect this is because the FLP uses the positions of surrounding WiFi access points. These access points could be more than 50 meters away and therefore the condition for a "LocationChanged"-event would be fulfilled.
This leads to unwanted effects like "star formation" on the map.
My first idea was to discard location updates that do not have GPS as provider. However, it seems to be impossible to determine the provider of an FLP position, so my problem remains. Well, maybe someone here has another approach that could help me. Thanks in advance.