首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

android使用google 地图 api详解

2012-08-22 
android使用google map api详解To use the Google Maps in your Android application, you need to modify

android使用google map api详解

To use the Google Maps in your Android application, you need to modify your?
Figure 3?Google Maps in your application

At this juncture, take note of a few troubleshooting details. If your program does not run (i.e. it crashes), then it is likely you forgot to put the following statement in your?

package net.learn2develop.GoogleMaps;?import com.google.android.maps.MapActivity;import com.google.android.maps.MapView;import com.google.android.maps.MapView.LayoutParams;  ?import android.os.Bundle;import android.view.View;import android.widget.LinearLayout;?public class MapsActivity extends MapActivity {        MapView mapView; ?    /** Called when the activity is first created. */    @Override    public void onCreate(Bundle savedInstanceState)     {        super.onCreate(savedInstanceState);        setContentView(R.layout.main);??        mapView = (MapView) findViewById(R.id.mapView);        LinearLayout zoomLayout = (LinearLayout)findViewById(R.id.zoom);          

热点排行