Reputation: 227
I develop an application that retrieves the location of the user.
Is that I can test on my emulator (of Eclipse) the geolocation with GPS or other?
thank you
Upvotes: 2
Views: 1129
Reputation: 2570
You can connect to the emulator using telnet
and then use the command geo fix <latitude> <longtitude>
to simulate a change in latitude and longtitude
/tools
directory of your SDK's installationtelnet localhost <port number>
. You will get the port number from the emulator windowgeo fix <x> <y> <z>
to change the location. X and Y are latitude and longtitude in degrees and Z is altitude in meters (it's optional).This page has details
Edit: Corrected and added more info
Upvotes: 4
Reputation: 52966
If you are using Eclipse, you can set long/lat in the Emulator control view, under 'Location controls'
Upvotes: 1
Reputation: 4401
Open DDMS perspective, select an emulator, then put in Location control any coordinates you need.
Upvotes: 1