开发者

Android GPS and Network Provider

开发者 https://www.devze.com 2023-04-04 18:11 出处:网络
Is it necessary for gps to be enabled while g开发者_JAVA技巧etting location updates through Network_provider like:

Is it necessary for gps to be enabled while g开发者_JAVA技巧etting location updates through Network_provider like:

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

while GPS of android device is disabled . . . ? ? ?


no , you just have to be connected through wi-fi or any network means. you have separate provider string for GPS e.g locationMangaer.requestLocationUpdates(LocationManager.GPS_PROVIDER, MINIMUM_TIME, MIN_DISTANCE, listener);

0

精彩评论

暂无评论...
验证码 换一张
取 消