2

I'm trying to send geo fixes to the Android Emulator in Eclipse. It has been working in some locations, but now it never works. I've tried targeting different platforms, setting the time zone in the correct emulator, changing the locale to English (US), wiping the user data in the emulator, used both telnet geo fix command and the DDMS.

How can I make this work?

3
  • Did you ever figure it out? I'm facing the same problem. Mar 30, 2011 at 11:08
  • Unfortunatley no. Instead, I enabled debugging on device in the manifest file. The advantage, besides that I get the real geo fix, is that it starts upp much faster. When ever I needed to use the emulator I wrote some hard-coded geo fix in the code.
    – Christian
    Apr 18, 2011 at 14:41
  • Could you give more details : setup (AVD, target Android version), code, error messages?...
    – Stéphane
    Apr 21, 2011 at 14:05

3 Answers 3

5
+100

If your AVD version is API level 9, (2.3 emulator), then it appears to be a known bug

onLocationChanged(Location location) method does not work in google API 9 platfom 2.3

I've got two apps that work fine in 2.1 and 3.0, but one is reluctant to install under 2.3, when it does, geo fix doesn't work.. The other is installed and again geo fix doesn't work.

1

Make sure your emulator's name is selected under Devices in DDMS. And also occasionally ADB fails so the commands don't get sent to the emulator so you have to restart the dev environmeneclipse and adb.

0
1

I had this very problem in the Java bootcamp I was teaching last week. This is a known bug in API level 9.

Your best bet is to connect a device and test on an actual device. Once we did that we could see on the map the actual building we were in at the time!

I also recommend testing on the device for camera applications as the interface to test camera apps on the emulator is clunky..

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.