Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何检查位置更新是否由 gps 提供商或蜂窝网络触发?对于代码:
@Override public void onLocationChanged(final Location location) { }
@Override public void onLocationChanged(final Location location) { // it Returns the name of the provider that generated this fix. String locationProvider = location.getProvider() }