title: Android Google Maps
body: <p>I use the google code from devloper.android.com
  I use that application but in the emulator it shows only the crossed lines not the map
  so is there any settings in emulator for displaying maps 
  HelloItemizedOverlay.java</p>
  
  <pre><code>package com.HelloGoogleMaps;
  import java.util.ArrayList;
  import android.app.AlertDialog;
  import android.content.Context;
  import android.graphics.drawable.Drawable;
  import com.google.android.maps.ItemizedOverlay;
  import com.google.android.maps.OverlayItem;
  
  public class HelloItemizedOverlay extends ItemizedOverlay {
      ArrayList&lt;OverlayItem&gt; mOverlays;
      Context mContext;
  
    public HelloItemizedOverlay(Drawable defaultMarker) {
      super(boundCenterBottom(defaultMarker));
      mOverlays = new ArrayList&lt;OverlayItem&gt;();
      // TODO Auto-generated constructor stub
    }
  
    public HelloItemizedOverlay(Drawable defaultMarker, Context context) {
      super(defaultMarker);
      mContext = context;
    }
  
    @Override
    protected OverlayItem createItem(int i) {
      // TODO Auto-generated method stub
      return mOverlays.get(i);
    }
  
    @Override
    public int size() {
      // TODO Auto-generated method stub
      return mOverlays.size();
    }
  
    public void addOverlay(OverlayItem overlay) {
      mOverlays.add(overlay);
      populate();
    }
  
    @Override
    protected boolean onTap(int index) {
      OverlayItem item = mOverlays.get(index);
      AlertDialog.Builder dialog = new AlertDialog.Builder(mContext);
      dialog.setTitle(item.getTitle());
      dialog.setMessage(item.getSnippet());
      dialog.show();
      return true;
    }
  
  }
  </code></pre>
  
  <p>HelloGoogleMaps.java</p>
  
  <pre><code>package com.HelloGoogleMaps;
  import java.util.List;
  import com.google.android.maps.GeoPoint;
  import com.google.android.maps.MapActivity;
  import com.google.android.maps.MapView;
  import com.google.android.maps.Overlay;
  import com.google.android.maps.OverlayItem;
  import android.app.Activity;
  import android.graphics.drawable.Drawable;
  import android.os.Bundle;
  
  public class HelloGoogleMaps extends MapActivity  {
       /** Called when the activity is first created. */
       @Override
       public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
          MapView mapView = (MapView) findViewById(R.id.mapview);
          mapView.setBuiltInZoomControls(true);
          List&lt;Overlay&gt; mapOverlays = mapView.getOverlays();
          Drawable drawable = this.getResources().getDrawable(R.drawable.androidmarker);
          HelloItemizedOverlay itemizedoverlay = new HelloItemizedOverlay(drawable);
          GeoPoint point = new GeoPoint(19240000,-99120000);
          OverlayItem overlayitem = new OverlayItem(point, "Hola, Mundo!", 
                                      "I'm in Mexico   City!");
  
          itemizedoverlay.addOverlay(overlayitem);
          mapOverlays.add(itemizedoverlay);
     }
  
     @Override
     protected boolean isRouteDisplayed() {
         return false;
     }
  }
  </code></pre>
  
  <p>Android Manifest.xml</p>
  
  <p>
  </p>
  
  <pre><code>&lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;
      &lt;activity android:name=".HelloGoogleMaps"
                android:label="@string/app_name"
                android:theme="@android:style/Theme.NoTitleBar"&gt;&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
  &lt;uses-library android:name="com.google.android.maps" android:required="true"&gt;&lt;/uses-library&gt;
  </code></pre>
  
  <p>
      </p>
  
  <p>
  
  
   </p>