-4

If I cant pass minimum time and distance in this method, what will happen? When will this method be called?

locationManager.requestLocationUpdates(provider,0, 0,locationListener);
Dante May Code
  • 11,177
  • 9
  • 49
  • 81
sam_k
  • 5,983
  • 14
  • 76
  • 110

1 Answers1

2

by setting minTime and minDistance to 0 you will get a dead phone.

by the docs:

To obtain notifications as frequently as possible, set both parameters to 0.

you will just get very very rapid responses and also the battery drain on a device will be horrendous.

Dr.J
  • 1,220
  • 8
  • 9