title: requestLocationUpdates() method is giving updates without change in location - Android
body: <p>I have used <code>onLocationChanged</code> method of <code>LocationListener</code> for detecting change in location of my device. In <code>requestLocationUpdates</code> method I have set minimum Time = 5 seconds and minimum Distance = 2 meters, but <code>requestLocationUpdates</code> method is giving me updates even when my device is not moved at all (placed stationary). So please tell what is the issue with my code?</p>
  
  <p><strong>This my code:</strong></p>
  
  <pre><code>public class LocationDetector implements LocationListener {
      @Override
      public void onLocationChanged(Location location) {
          Log.d("GPS: ",location.getLatitude()+", "+location.getLongitude());
      }
  </code></pre>
  
  <p>.</p>
  
  <pre><code>LocationManager manager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
  </code></pre>
  
  <p>.</p>
  
  <pre><code>manager.requestLocationUpdates("gps", 5000, 2, new LocationDetector());
  </code></pre>