1

I am using Google Play's Location Services http://developer.android.com/reference/com/google/android/gms/location/LocationClient.html

for location requirement, everything seem to be working as expected. I am setting the priority for Power Balance mode, which as per the documentation will provide the GPS points from Network or WIFI with lesser impact on battery.
On callback to onLocationChanged() I don't seem to figure out what is the source provider for the location I got. My requirement needs me to figure this out. However, there are ways we can make assumptions about the source, I just wanted to check if anyone else have figured it out?

Thanks, SKU

4

1 回答 1

4

The Google Play Location API does not provide a way to determine the source provider as it functions as a Fused Location Provider:

The Fused Location Provider intelligently manages the underlying location technology and gives you the best location according to your needs.

The location returned may be a combination of cellular, WiFi, GPS, and/or sensor data.

于 2013-06-04T18:05:06.183 回答