A few things you need to do, in case this is user error and not the SDK:

1. In the AVD, make sure the device explicitly has gps enabled when 
creating/editing it, double check this, it may default to true, though
2. On your emulated device, go into settings, make sure gps is enabled, but 
also under applications/development/ settings, make sure allow mock 
locations is checked
3. Add Devices and Emulator Control panels to your workspace in Eclipse
4. Make sure the device is selected when you're running your app, in the 
Devices panel (you should see logs in the logcat panel)
5. In the emulator control panel, send the location under location 
controls/manual

When you send a mock location to the emulator, you should see a gps beacon 
show up on the emulator, if GPS is on.

This should at least give you an idea of whether things will work, I am not 
sure specifically about sending locations with telent.


On Saturday, May 14, 2011 6:38:42 PM UTC-4, funkatron wrote:
>
> Hi there, 
>
> I'm trying to get the Map demos working, as provided in the Google API 
> sample projects.  I am using AVDs and have tried with versions 8, 10 
> and 11 and get the same issue. 
>
> I've generated my own debug key and added to the project.  I can see 
> the map on app start up, and can zoom in etc - so I am getting the map 
> tiles, fine. 
> Yes - I have the correct permissions and  library set in the Manifest 
> file (as per samples). 
>
> But, I cannot set a location on the map, either via DDMS or Telnet.  I 
> see the following error in LogCat: 
> MapActivity : Couldn't get connection factory client 
>
> I've read numerous threads regarding this issue, but they always seem 
> to be as a result of a bad API key; which I do not have, as I am 
> retrieving map tiles. 
>
> So I created my own project to test this further, and am executing the 
> following code on initialisation of my map: 
>
> myLocationOverlay = new MyLocationOverlay(this, mapView); 
>         mapView.getOverlays().add(myLocationOverlay); 
>         myLocationOverlay.enableCompass(); 
>         myLocationOverlay.enableMyLocation(); 
>         Log.i("funkatron: ", "ABOUT TO CALL RUN ON FIRST FIX"); 
>         myLocationOverlay.runOnFirstFix(new Runnable() { 
>             public void run() { 
>             String loc = "we have a location, executing AnimateTo(). 
> "+myLocationOverlay.getMyLocation().toString(); 
>                 Log.i("funkatron:",loc); 
>   
> mapController.animateTo(myLocationOverlay.getMyLocation()); 
>             } 
>         }); 
>
> I see my first log statement, but never the second, and "MapActivity : 
> Couldn't get connection factory client" is written to LogCat at that 
> point. 
>
> I have read that there were issues with SDK v8 emulators, so I have 
> tried with v10 and 11 - but still no joy. 
> I have NOT yet tried this on an actual device - will do soon. 
>
> Any help on this issue would be greatly appreciated - it's really 
> baffling me  ;) 
>
> cheers 
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to