Define location in gpx file
Select Simulate Location -> Add GPX File to Project...
Select Build -> Run-> Options -> Allow Location Simulate