You can request updates from more than one provider. Add the following line:
locationManager.requestLocationUpdates(LocationManager. NETWORK_PROVIDER, 3000, 1, this);
The same callback methods, i.e. onLocationChanged()
, onProviderDisabled()
, etc., will be used to pass the updates from both providers. If you need to know which provider is passing the update, you can use the Location.getProvider()
method in onLocationChanged()
, and the String provider
parameter passed in the others.