Search code examples
javaandroidandroid-locationandroid-gps

requestLocationUpdates 2nd paramater is in km or m


locationManager.requestLocationUpdates( LocationManager.GPS_PROVIDER, time, distance, locationListener); here
time is in milliseconds or second?
distance is in km or m?


Solution

  • The android API is very well documented, you can find your answer here.

    enter image description here

    This should answer your question, but I greatly recommand you to read the android developers documentation for any further question about it, you'll find everything you need.