Android simulator manually sets latitude and longitude coordinates, android latitude and longitude
The first method can be set in Emulator control in DDMS of eclipse, as shown in figure
The other is to input telnet localhost 5554 in cmd (Note: 5554 is the port of the simulator on the local machine. It may be different. The specific port number is shown in the upper-left corner of the simulator ), the Android Console: type 'help' for a list of commandsOK is displayed. If the system prompts that the command is invalid, you need to go to the control panel of your computer --> program --> enable or disable the Windows function, and then select the Telnet server and Telnet client. Then, enter telnet localhost 5554 in cmd to display the Android Console: type 'help' for a list of commands OK.
Then enter the command: geo fix 121.4736999111 31.2303950509
This is the latitude and longitude of Shanghai, latitude and longitude query can refer to the website: http://www.gpsspg.com/maps.htm