title: how to get the name entered by the user and search that respective location in edittext
body: <p>i can place Google map in my android mobile. i put search option for google map. if the user give the location and click button search means it find the location in google map. now i want display relative location when the user give the location name in Edittext..Please give me any reference.....</p>
  
  <pre><code>   i try this code of button click
       if (v == search) {
          Geocoder geo = new Geocoder(getApplicationContext(),
                  Locale.getDefault());
          try {
              List&lt;Address&gt; addresses = geo.getFromLocationName(location
                      .getText().toString(), 5);
              if (addresses.size() &gt; 0) {
                  GeoPoint p = new GeoPoint((int) (addresses.get(0)
                          .getLatitude() * 1E6), (int) (addresses.get(0)
                          .getLongitude() * 1E6));
  
                  controller.animateTo(p);
                  controller.setZoom(12);
                  MapOverlay mapOverlay = new MapOverlay(getApplicationContext(),p);
                  List&lt;Overlay&gt; lisOverlays = view.getOverlays();
                  lisOverlays.clear();
                  lisOverlays.add(mapOverlay);
  
              }
  </code></pre>
  
  <p>the button search click means it shows location also . i want displays the locations according to user search in edit text</p>