@aziziti: that method is indeed obsolete since SDK 1.5 Check out the location dev guide
@all: I tried out plusminus's KML route in Germany. When I try to play it in DDMS, an icon shows up at the inital point but never moves, and after a while it simply disappears. Pressing play again doesn't help at all. I was following the tutorial from Andreas Frey's blog
. Also, when I'm sending single GPS fixes, it works for 2 or 3 times n then just stops doing anything...I find this behaviour pretty strange.
EDIT: OK, so I did some debugging on the matter: I can only provide a location twice, either through DDMS or telnet. The onStatusChanged method returns gps as available. The icon shows up when I send the first location, moves when I send the second location. When I send a location for the third time, nothing happens. The onLocationChanged method isn’t called, neither are any other locationListener methods - gps isn’t reported to be unavailable or anything. MapActivity reports an error as soon as our Activity is started, saying “Couldn’t get connection factory client”.
Andreas's code works fine because it behaved like expected when I provided fake location coordinates from a simple array.
Any ideas what this might be???