title: Is the function onLocationChanged called every movement of Android device?
body: <p>I use the function onLocationChanged to identify the user's location, I want it to happen <strong>every movement</strong> of <code>Android</code> phone </p>
  
  <p>exactly when the function is called?</p>
  
  <p>My code looks like this:</p>
  
  <pre><code>locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);  
  locationListener = new GPSLocationListener();
  locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener);
  </code></pre>
  
  <p>GPSLocationListener:</p>
  
  <pre><code>public class GPSLocationListener extends DroidGap implements LocationListener 
  {
    @Override
    public void onLocationChanged(Location location) {
        AlertDialog.Builder alt_bld = new AlertDialog.Builder(this);
          alt_bld.setMessage("onLocationChanged");
          AlertDialog alert = alt_bld.create();
          alert.show();
    }
  
  @Override
  public void onProviderDisabled(String provider) {
      // TODO Auto-generated method stub
  
  }
  
  @Override
  public void onProviderEnabled(String provider) {
      // TODO Auto-generated method stub
  
  }
  
  @Override
  public void onStatusChanged(String provider, int status, Bundle extras) {
      // TODO Auto-generated method stub
  
  }
  }
  </code></pre>
  
  <p>The alert onLocationChanged never appears.</p>