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 получение фрагментов карты.
Итак, я создал свой собственный проект, чтобы проверить это дальше, и выполняю следующий код при инициализации моей карты:
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());
}
});
Я вижу свой первый оператор журнала, но никогда второй, и «MapActivity: Не удалось получить клиент фабрики соединений ", при этом в LogCat записано точка.
Я читал, что были проблемы с эмуляторами SDK v8, поэтому у меня пробовал с v10 и 11 - но все равно без радости. Я еще НЕ пробовал это на реальном устройстве - скоро сделаю.
Любая помощь по этому вопросу будет принята с благодарностью - это действительно baffling me ;)
cheers