Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid MapActivity : Couldn't get connection factory client
    text
    copied!<p>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.</p> <p>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).</p> <p>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</p> <p>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.</p> <p>So I created my own project to test this further, and am executing the following code on initialisation of my map:</p> <pre><code> 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());            }        }); </code></pre> <p>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.</p> <p>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.</p> <p>Any help on this issue would be greatly appreciated - it's really baffling me  ;)</p> <p>cheers</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload