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.
通过 Network_provider 获取位置更新时是否需要启用 gps,例如:
locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,0,0,listener);
而android设备的GPS被禁用。. . ? ? ?
不,您只需要通过 wi-fi 或任何网络方式连接即可。您有单独的 GPS 提供商字符串,例如locationMangaer.requestLocationUpdates(LocationManager.GPS_PROVIDER, MINIMUM_TIME, MIN_DISTANCE, listener);
locationMangaer.requestLocationUpdates(LocationManager.GPS_PROVIDER, MINIMUM_TIME, MIN_DISTANCE, listener);