title: convert address to latitude and longtitude, and display the result on the map, getNameFrom gives nothing
body: <p>so when I remove getNameFrom and hardcode the Geopoint, my map shows a pin point, however, when I use this function it does not return anything and hence my  map does not display anything.</p>
  
  <p>Here is my  ItemizedOverlay class:</p>
  
  <pre><code>public class ItemizedOverlay extends com.google.android.maps.ItemizedOverlay {
  
  private ArrayList&lt;OverlayItem&gt; mOverlays = new ArrayList&lt;OverlayItem&gt;();
  
  public ItemizedOverlay(Drawable defaultMarker) {
      super(boundCenterBottom(defaultMarker));
  
      // TODO Auto-generated constructor stub
  }
  
  @Override
  public int size() {
      return mOverlays.size();
  } 
  public void addOverlay(OverlayItem overlay) {
      mOverlays.add(overlay);
      populate();
  }
  @Override
  protected OverlayItem createItem(int i) {
    return mOverlays.get(i);
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Here is my code that converts the string of address to lat and lng and then makes an overlay and adds it.</p>
  
  <pre><code>private  void convert_Points() throws IOException {
              // initialization
      mapOverlays = mapV.getOverlays();
      drawable = this.getResources().getDrawable(R.drawable.pin);
      itemizedoverlay = new ItemizedOverlay(drawable);
  
  
      // make OverlayItem by creating a GeoPoint that defines our map coordinates
      Geocoder geocoder = new Geocoder(this, Locale.getDefault());
      List&lt;Address&gt; geoResults = geocoder.getFromLocationName("empire state building", 1);
      while (geoResults.size()==0) {
          geoResults = geocoder.getFromLocationName("empire state building", 1);
      }
      if (geoResults.size()&gt;0) {
      GeoPoint point= new GeoPoint( (int) (geoResults.get(0).getLatitude() * 1E6), (int) (geoResults.get(0).getLongitude() * 1E6));
  
  
  
  //  GeoPoint point = new GeoPoint(19240000,-99120000);
      OverlayItem overlayitem = new OverlayItem(point, "", "");
  
  //  add this OverlayItem to acollection in the ItemizedOverlay
      itemizedoverlay.addOverlay(overlayitem);
      mapOverlays.add(itemizedoverlay);
  
      }
  }
  </code></pre>
  
  <p>// Here is my mapoverlay class in my activity class</p>
  
  <pre><code>class MapOverlay extends com.google.android.maps.Overlay
  {
      @Override
      public boolean draw(Canvas canvas, MapView mapView, 
      boolean shadow, long when) 
      {
          super.draw(canvas, mapView, shadow);                   
          Point screenPts = new Point(); // transform the Geological point to map pixel
          mapView.getProjection().toPixels(p, screenPts);
  
          Bitmap bmp = BitmapFactory.decodeResource(  // add the pin
              getResources(), R.drawable.pin);            
          canvas.drawBitmap(bmp, screenPts.x, screenPts.y-50, null);         
          return true;
      }
  </code></pre>