Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DDMS not able to send location to emulator

DDMS is not able to send location to the emulator. I have tried sending just the location from DDMS but still the emulator is not able to receive location. The application works properly in the device but its not able to capture location data in the emulator.

I am testing on Android 2.2 emulator. Can anyone let me know what can be the issue?

like image 530
sunil Avatar asked Sep 07 '10 07:09

sunil


2 Answers

Make sure your AVD has GPS support hardware set to true

Create New AVD > Hardware > New > GPS support

Value should be "yes"

Also, ensure your app is requesting location updates in some way, otherwise the emulator will just ignore any incoming locations from DDMS or the console.

like image 134
Jenn Avatar answered Oct 12 '22 00:10

Jenn


I just use the android console via telnet, it always works.

Just open a command line and:

telnet localhost 5554

5554 is the port number of your emulator, it is usually that but might change, it can be on the window fram of the emulator as PORT:AVD_NAME.

You should be greeted with an Android console message.

To send positions to your device just type.

geo fix []

Two valid statements would be

geo fix -77.036519 38.896143
geo fix -77.036519 38.896143 100

Hope this helps, its not DDMS, but it works always. You can also feed it nmea sentences but I dont think you need that.

like image 22
blindstuff Avatar answered Oct 12 '22 00:10

blindstuff