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);
精彩评论