开发者

Android GPS and Network Provider

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜