There is a program that uses GWT and the Google Maps API to launch a browser-based map tool to set the GPS location in the emulator: If you are not using windows you can use any telnet client.Īfter connecting with telnet use the following command to send your position to emulator. It will send the position to you emulator and the application. You will see on Left Side Devices Panel and on Right Side you will see different tabs.Īt bottom you will see Location Controls Panel.Įnter Longitude and Latitude in Textboxs then Click Send Button. Locations will be sent in real time as shown on the picture below.Īfter running the emulator goto Tools->Android->Android device monitorĬlick the Emulator Control Tab change from the location controls group.įirst In Eclipse In Menu Select "Window" then Select "Open Perspective" then Select "DDMS". Use "Load GPS/KML" button to load the created file to your emulator, choose speed, and press green play button on the bottom. Press the "Let's Go" button and GPX file will be downloaded.Go to this website: and paste the link to "Let's Go" box.After route is created, copy a link from the browser.Go to google map, choose a location, then press "Directions" and enter the second location.
It's very easy to create this file from Google Map direction link:
In addition, to make your different locations coming to your application in real time, you can use GPX file. After pressing Send button, changes will immediately take effect (I recommend you to open up Google Maps for better understanding).
Then from the left pane, select Location and change the coordinates according to your needs.
No one here mentioned the built in solution of the emulator itself, so for future visitors, I'd like to share it with visuals.įirst, run your Android Emulator and click on the menu button (3 dots) shown below: