Reputation: 1045
Is it possible to show our current posotion on Android emulator? If yes how?
Thank You.
Upvotes: 0
Views: 4669
Reputation: 29436
You can interact with an emulator instance through its shell.
telnet localhost 5554
, you are now in emulator shell.help
,it will show available commands , like faking a call, sms, battery etc.help <command name>
.help geo
, it will print available location commands.geo fix 1 1
.Upvotes: 1
Reputation: 48622
You need to set the latitude and longitude in case of emulator because emulator do not have gps detection hardrware to get current location.
telnet localhost 5554
geo fix <longitude value> <latitude value> For ex: geo fix 68.54546 37.5117579
Upvotes: 4
Reputation: 116
You can fake GPS location data on emulator using DDMS which is explained here: http://developer.android.com/tools/debugging/ddms.html#ops-location and here: http://developer.android.com/guide/topics/location/strategies.html#MockData.
Upvotes: 1