Android: location detection by Cellular Network and WiFi
问题 I would like to build a app which will provide current location using cellular Network and WiFi . I like to get location from both provider simultaneously and then decide which provider give me best. Now i am getting location from Network LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE); LocationListener locationlistenerforNetwork = new mylocationlistenerNetwork(); lm.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationlistenerforNetwork);