Android 我如何了解提供商pf LocationManager';全球定位系统检索?

Android 我如何了解提供商pf LocationManager';全球定位系统检索?,android,gps,Android,Gps,我正在尝试记录有关应用程序如何获取坐标的信息。这是我用来获取坐标的代码 locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE); location = locationManager.getLastKnownLocation(locationManager.NETWORK_PROVIDER); 我的问题是,如何找到坐标的来源?(GPS、网络三角测量、Wifi等) 换句话说,getLa

我正在尝试记录有关应用程序如何获取坐标的信息。这是我用来获取坐标的代码

locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);
location = locationManager.getLastKnownLocation(locationManager.NETWORK_PROVIDER);
我的问题是,如何找到坐标的来源?(GPS、网络三角测量、Wifi等)


换句话说,getLastKnownLocation返回来自多个源的坐标,如何获取源的字符串名称?

您可以使用网络提供程序。该提供商根据基站和WiFi接入点的可用性确定位置。通过网络查找检索结果。 GPS_提供商使用卫星确定位置

看看这个,然后。也许有帮助。