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