Sapient
Company
Programming
locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,0,0,locationListener)
In this line of code, what is the use of the second and third parameter?
1) These are used to control the frequency at which the listener receives updates.
2) These are used to specify the number of location providers.
3) Both of the above
4) None of the above
Read Solution (Total 1)
-
- requestLocationUpdates :
Parameters
provider String: the name of the provider with which to register
minTime long: minimum time interval between location updates, in milliseconds
minDistance float: minimum distance between location updates, in meters
listener LocationListener: a LocationListener whose onLocationChanged(Location) method will be called for each location update
so ANSWER IS 1. - 7 years agoHelpfull: Yes(1) No(0)
Sapient Other Question