views:

90

answers:

2

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?

A: 

I don't know what your setup looks like, but I've had problems sending locations via DDMS using Windows XP and regional settings set to Swedish. Changing the regional settings to English(USA) solves the problem for me. I guess it has something to do with how numbers are formatted. With swedish settings numbers are formatted as 123 456 789,00 and with English(USA) as 123,456,789.00. Hope it helps

Key
i have tried that already but it doesn't make any effect to it. I assume that you are talking about the emulator timezone and the system timezone.
sunil
@sunil: Sorry about being unclear, but I am talking about the regional settings of your Windows system were the emulator is running (if you are running Windows).
Key
A: 

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.

blindstuff