读书人

android使用google 地图 api详解

发布时间: 2012-08-22 09:50:35 作者: rapoo

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);          

读书人网 >Android

热点推荐