You have to use a LocationProvider and set getProvider method with "gps", this is the mock provider, and it simulates a ride near from San Francico. You will still have to set locationManager.requestUpdates as shown below:
For usign a mock GPS, create a kml file of the required route in Google earth and place this inside the /data/misc/location/gps/ folder in the enulator. Now the emulator will provide you with values along this route.
smile it is the key that fits the lock of everybody's heart