Android GPS Always Returns Same Location
<p>I'm trying to get the user's location within Android, the code below works however it always returns the same location no matter what I do. I've tested out in the middle of an empty parking lot to ensure the GPS is locked on, and it is. Google maps also shows my location correctly. Is there something wrong with the code below?</p>

<pre><code>public class LocationTestActivity extends Activity implements LocationListener
{   
private Location myLoc;

@Override
public void onCreate(Bundle savedInstanceState) 
{
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    output = (TextView) findViewById(R.id.output);
    myLong = (TextView) findViewById(R.id.longi);
    myLat = (TextView) findViewById(R.id.lat);
    myRefreshed = (TextView) findViewById(R.id.counter);

    mgr = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
    mgr.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, this);
}

@Override
public void onLocationChanged(Location location) 
{
    timesChanged++;
    myRefreshed.setText("Refreshed: " + timesChanged);
    myLong.setText("Longitude: " + location.getLongitude());
    myLat.setText("Latitude: " + location.getLatitude());
}
}
</code></pre>

<p>I'd like to add that I can pass in a location using the emulator with no problem. I also removed the other needed methods required by LocationListener for clarity. Thanks for the help!</p>
