Skip to content

Instantly share code, notes, and snippets.

@honjo2
Created October 20, 2010 06:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save honjo2/635850 to your computer and use it in GitHub Desktop.
Save honjo2/635850 to your computer and use it in GitHub Desktop.
[android maps api] 地図を表示する
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