Уже несколько дней мое приложение не показывает карты.
Чтобы убедиться, что мой код верен, я решил протестировать учебники MAPS
Приложение найдено на developer.android.com здесь .
Карты в учебнике также не отображаются.
Я просто вижу обычные маленькие сетки Mapview.
Когда я нажимаю на нее, у меня нормальный ответ, сообщающий мне соответствующие геокоды.
Есть идеи почему ??
Код этого урока:
public class MapsActivity extends MapActivity
{
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.mapview);
MapView mapView = (MapView) findViewById(R.id.mapView);
mapView.setBuiltInZoomControls(true);
}
@Override
protected boolean isRouteDisplayed() {
return false;
}
}
?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<com.google.android.maps.MapView
android:id="@+id/mapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:enabled="true"
android:clickable="true"
android:apiKey="my key"
/>