问题
We are using fused location provider and if I query location.getProvider() on the location I'm receiving it returns fused. I would like to check whether the fused provider used GPS or Wifi or both for the location it gave me. is this possible? how?
回答1:
The fused provider does not provide you with the specific location provider it only returns fused as you said, if you want to listen for a specific provider you need to use the old LocationManager
来源:https://stackoverflow.com/questions/25558761/check-if-provided-location-info-from-fused-location-provider-is-from-gps