 <p>You can use the <code>setTestProviderLocation</code> method of the <code>LocationManager</code> to mock new locations and have the <code>onLocationChanged</code> method of the registered listeners called when you want.</p> <p>You should check the <a href="http://developer.android.com/reference/android/location/LocationManager.html" rel="nofollow">reference page</a>. You also have an example <a href="http://markmail.org/message/koo6pdhusseubuth" rel="nofollow">here</a>.</p>