My favorites | Sign in
Google
          
New issue | Search
for
| Advanced search | Search tips
Issue 915: Location Controls in eclipse DDMS view not send to emulator
26 people starred this issue and may be notified of changes. Back to list
Status:  Assigned
Owner:  x...@android.com
Type-Defect
Priority-Medium
Component-Tools


Sign in to add a comment
 
Reported by henrik.v.eriksson, Sep 28, 2008
Pressing the Send button in Location Controls does not send location to the 
Android emulator.

To repoduce:
1) Launch the AndroidLocationSample in eclipse.
2) Watch LogCat in the eclipse DDMS view.
When running telnet:
C:\>telnet localhost 5554
geo fix 1 2
you see a "location changed" message in the LogCat window.
Pressing send in "Location Controls" does not result in a message in the 
LogCat window.

According to this thread in the Android Developers group:
"location is always latitude 0 longitude 0 altitude 10 in v0.9"
http://groups.google.com/group/android-
developers/browse_thread/thread/32c0e799290b4854/44b72dd05fdedd52?
problem seems to be related to locale settings for the PC.

I'm currently running WinXP with danish locales.
Comment 1 by guillaume.perr, Sep 29, 2008
I also reproduced this issue on ubuntu 8.04 LTS, french locale.
If I open a X session in an english (GB) locale, DDMS controls start to work.
Comment 2 by anvillar84, Oct 01, 2008
In Windows XP, the problem is solved changing the numbers, time, date format from
your language to english.
Comment 3 by m.kaeppler, Oct 22, 2008
same here, can confirm this. I am on Ubuntu, too.

maybe that feature is platform dependend? I saw it working for my very app on a
friend's Windows machine.
Comment 4 by m.kaeppler, Oct 22, 2008
btw, that friend's Windows XP machine has a German locale set, so the locale cannot
really be the source of this problem.
Comment 5 by felix.knecht, Nov 05, 2008
The locale is definitely the problem! I was on a German locale on Win XP and just
changed the format of time and numbers to english (US). After restarting Eclipse the
DDMS GPS control just worked.
Comment 6 by boygoboom, Dec 28, 2008
This happens for me, too (on Windows XP), and I'm in New York, so I don't think it's
a locale issue.
Comment 7 by francesco.serafini82, Jan 29, 2009
I'm using Win Vista, Italian, I'm having the same problem!
As soon as I switch to US, it starts to work properly...

I also tried on a Linux machine (Fedora 9), and, even if I've switched to english,
it doesn't seem to work...
Comment 8 by Velehto, Feb 03, 2009
I'm using Finnish Win Vista and same problem here... Hope this gets solved soon...
Comment 9 by krystof.nemec, Mar 08, 2009
I'm using Vista x64, Czech locale and the result is pretty much the same as mentioned 
in previous posts. 

DDMS location controls started working after changing Vista to EN/US locale.

The telnet "gps" command works fine though, since it's independent on OS...
Comment 10 by jisakiel, Apr 09, 2009
I can confirm this on Debian Testing. It works if one launches eclipse as LC_ALL="C"
eclipse , to force its locale without having to change the whole desktop. 
Comment 11 by hoeferh, Apr 26, 2009
Same here (and not only eclipse, the standalone DDMS is also affected).
A workaround is to the the Java system property "user.language" to "en".

For eclipse you can do so by adding "-Duser.language=en" (without the quotation
marks) on a separate tine your eclipse.ini file.

For the standalone DDMS you can set your "java_debug" environment variable to
"-Duser.language=en" (again, without the quotation marks) -- the startup script will
then add it to the command line.
Comment 12 by mauritslamers, Jun 01, 2009
Indeed the same problem. Tested on Mac OSX 10.4.11, Mac OSX 10.5.7 and Windows XP.
The workaround is to set the system to EN/US or EN/UK locale.
Comment 13 by mauritslamers, Jun 01, 2009
Addition: this is also the case for the standalone DDMS and the 1.5-r2 SDK
Comment 15 by WhitecatSoftware, Jul 20, 2009
And also 1.5 r3.  Note, this is an emulator bug, not DDMS.  I can use a 1.5 DDMS with
a 1.1 emulator and it will work fine.

Comment 16 by jbq@google.com, Aug 20, 2009
(No comment was entered for this change.)
Status: Assigned
Owner: x...@android.com
Labels: Component-Tools
Comment 17 by rafaelwmartins, Aug 22, 2009
hoeferh, worked for me. thank you!
Comment 18 by adolfo.bulfoni, Oct 03, 2009
For eclipse you can do so by adding "-Duser.language=en" (without the quotation
marks) on a separate tine your eclipse.ini file.


it works!!

thank you hoeferh!
Comment 19 by WhitecatSoftware, Oct 03, 2009
Appears to be fixed in 1.6 R1
Comment 20 by aldafu, Oct 26, 2009
Nope, this isn't fixed for me. I'm using 1.6 R1 on winxp with the german locale.
Sign in to add a comment