The first method can be set in emulator control in Eclipse's DDMS, such as
The other is in cmd input telnet localhost 5554 (note: 5554 is the emulator in the port of the machine, there may not be the same ha, the specific port number, the emulator is shown on the top left), this will appear Android Console:type ' help ' for a The words of the list of Commandsok. If the prompt command is not valid, you need to turn Windows features on or off in your computer's control panel---and then check the Telnet server and Telnet client. Then enter telnet localhost 5554 in cmd, which will show Android Console:type ' help ' for a list of commands OK
Then enter the command: Geo Fix 121.4736999111 31.2303950509
I this is the latitude and longitude of Shanghai, longitude query can refer to the website: http://www.gpsspg.com/maps.htm
Android Simulator manually set latitude and longitude coordinates