简体   繁体   English

Android GPS和网络提供商

[英]Android GPS and Network Provider

Is it necessary for gps to be enabled while getting location updates through Network_provider like: 通过Network_provider获取位置更新时是否需要启用gps,例如:

locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,0,0,listener);

while GPS of android device is disabled . 而android设备的GPS禁用。 . . ? ? ?

no , you just have to be connected through wi-fi or any network means. 不,您只需要通过wi-fi或任何网络方式进行连接。 you have separate provider string for GPS eg locationMangaer.requestLocationUpdates(LocationManager.GPS_PROVIDER, MINIMUM_TIME, MIN_DISTANCE, listener); 您有用于GPS的单独的提供程序字符串,例如locationMangaer.requestLocationUpdates(LocationManager.GPS_PROVIDER, MINIMUM_TIME, MIN_DISTANCE, listener);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM