アプリに Google Maps API をインストールしています。すべてが実行されており、Google マップ アクティビティを起動できますが、マップが表示されません。ズームインおよびズームアウトできるグリッドが表示されるだけです。
package com.fotolife.app;
import android.os.Bundle;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;
public class Map extends MapActivity {
@Override
protected boolean isRouteDisplayed() {
// TODO Auto-generated method stub
return false;
}
@Override
protected void onCreate(Bundle arg0) {
// TODO Auto-generated method stub
super.onCreate(arg0);
setContentView(R.layout.map);
}
}
^ それが私の Map.java です
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<com.google.android.maps.MapView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mapview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:apiKey="I Took this out for security reasons, but it works."
/>
</LinearLayout>
^これが私のmap.xmlです
助けてくれてありがとう!