Created
October 20, 2010 06:00
-
-
Save honjo2/635850 to your computer and use it in GitHub Desktop.
[android maps api] 地図を表示する
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package honjo; | |
import android.os.Bundle; | |
//import com.google.android.maps.MapActivity; | |
//import com.google.android.maps.MapView; | |
import jp.co.mapion.android.maps.MapActivity; | |
import jp.co.mapion.android.maps.MapView; | |
public class Slide01Activity extends MapActivity { | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
MapView mapView = new MapView(this, "APIキー"); | |
mapView.setClickable(true); // true => スクロール可 false => スクロール不可 | |
setContentView(mapView); | |
} | |
protected boolean isRouteDisplayed() { | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment