title: not getting location on Google map by name
body: <p>I am trying to getting location or want to show location on map by passing location name.<br>
  I did one sample project which show current location on map. But i don't understand how to pass name and search place on Google map.<br>
  Here is my code which may help you to understand my problem.     </p>
  
  <pre><code>protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      mapView = (MapView) findViewById(R.id.mapview);
      mapView.setBuiltInZoomControls(true);
      mapView.setSatellite(true);
      mapController = mapView.getController();
      mapController.setZoom(14); // Zoom 1 is world view
      locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
      locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0,
          0, new GeoUpdateHandler());
  
      myLocationOverlay = new MyLocationOverlay(this, mapView);
      mapView.getOverlays().add(myLocationOverlay);
  
      String value = "kasarwadi,pune";
      // Do something with value!
  
  
      Geocoder geoCoder = new Geocoder(getBaseContext(), Locale.getDefault());    
        try {
            List&lt;Address&gt; addresses = geoCoder.getFromLocationName(
                value, 5);
            String add = "";
            if (addresses.size() &gt; 0) {
             GeoPoint   p = new GeoPoint(
                        (int) (addresses.get(0).getLatitude() * 1E6), 
                        (int) (addresses.get(0).getLongitude() * 1E6));
                mapController.animateTo(p);    
                mapView.invalidate();
            }    
        } catch (IOException e) {
            e.printStackTrace();
        }
  
      myLocationOverlay.runOnFirstFix(new Runnable() {
        public void run() {
          mapView.getController().animateTo(myLocationOverlay.getMyLocation());
        }
      });
  
      Drawable drawable = this.getResources().getDrawable(R.drawable.point);
      itemizedoverlay = new MyOverlays(this, drawable);
      createMarker();
    }
  
    @Override
    protected boolean isRouteDisplayed() {
      return false;
    }
  
    public class GeoUpdateHandler implements LocationListener {
  
      @Override
      public void onLocationChanged(Location location) {
           String value = "kasarwadi,pune";
           // Do something with value!
  
  
           Geocoder geoCoder = new Geocoder(getBaseContext(), Locale.getDefault());    
             try {
                 List&lt;Address&gt; addresses = geoCoder.getFromLocationName(
                     value, 5);
                 String add = "";
                 if (addresses.size() &gt; 0) {
                  GeoPoint   p = new GeoPoint(
                             (int) (addresses.get(0).getLatitude() * 1E6), 
                             (int) (addresses.get(0).getLongitude() * 1E6));
                     mapController.animateTo(p);    
                     mapView.invalidate();
                 }    
             } catch (IOException e) {
                 e.printStackTrace();
             }
  
  
      }
  
      @Override
      public void onProviderDisabled(String provider) {
      }
  
      @Override
      public void onProviderEnabled(String provider) {
      }
  
      @Override
      public void onStatusChanged(String provider, int status, Bundle extras) {
      }
    }
  
    private void createMarker() {
      GeoPoint p = mapView.getMapCenter();
      OverlayItem overlayitem = new OverlayItem(p, "", "");
      itemizedoverlay.addOverlay(overlayitem);
      if (itemizedoverlay.size() &gt; 0) {
        mapView.getOverlays().add(itemizedoverlay);
      }
    }
  
    @Override
    protected void onResume() {
      super.onResume();
      myLocationOverlay.enableMyLocation();
      myLocationOverlay.enableCompass();
    }
  
    @Override
    protected void onPause() {
      super.onPause();
      myLocationOverlay.disableMyLocation();
      myLocationOverlay.disableCompass();
    }
  </code></pre>
  
  <p>I also generate MD5 fingerprint and valid api key. but when i am trying to show it show only current location but i need to show location which name pass by me.<br>
  Please give me an reference or hint.<br>
  Thanks in advance.</p>