Question

Is it possible to get the device speed from the location NETWORK_PROVIDER and not from the GPS_PROVIDER?

Was it helpful?

Solution

by device speed do you mean how fast the device is travelling?

if so, then the short answer is no.

longer answer is, that the way network provider works it has no reliable way of telling where the device is relative to the cell tower it is connected to, and therefor wouldn't be able to calculate speed even when the device switches from one cell tower to another.

for more information about how the location providers work look at this answer.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top