0

如何检查位置更新是否由 gps 提供商或蜂窝网络触发?对于代码:

  @Override
    public void onLocationChanged(final Location location) {
}
4

1 回答 1

1
  @Override
public void onLocationChanged(final Location location) {

    // it Returns the name of the provider that generated this fix.
String locationProvider = location.getProvider()

   }
于 2013-08-28T05:08:15.013 回答