title: How to find a location on Map from a address which has been input by user?
body: <p>I wanna find the location on Map when using a virtual device (Emulator Android) because i have not a actual device.
  Thanks for watching!</p>
  
  <p>Here is my code :</p>
  
  <pre><code>enter code herepublic class GoogleMapExample3Activity extends MapActivity {
  /** Called when the activity is first created. */
  MapView mapView;
  TextView txtView;
  LinearLayout zoomControl;
  GeoPoint geoPoint;
  MapController mapController;
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
      mapView=(MapView) findViewById(R.id.mapView);
      zoomControl=(LinearLayout) findViewById(R.id.zoomControl);
      View view= mapView.getZoomControls();
      zoomControl.addView(view,new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
      mapView.displayZoomControls(true);
      mapView.setSatellite(true);
      String address="New York";
      Geocoder geoCoder=new Geocoder(this);
      List&lt;Address&gt; list;
      try {
          list = geoCoder.getFromLocationName(address, 1);
          Address a=list.get(0);
          Double latitude=a.getLatitude();
          Double longitude=a.getLongitude();
          geoPoint=new GeoPoint( (int)(latitude*1E6),(int)(longitude*1E6));
          mapController=mapView.getController();
          mapController.animateTo(geoPoint);
          mapController.setZoom(18);
  
      } catch (Exception e) {
          e.printStackTrace();
      }
  }
  
  @Override
  protected boolean isRouteDisplayed() {
      return false;
  }
  
  @Override
  public boolean onKeyDown(int keyCode, KeyEvent event) {
      MapController mapController=mapView.getController();
      switch (keyCode) {
      case KeyEvent.KEYCODE_I:
          mapController.zoomIn();
          break;
      case KeyEvent.KEYCODE_O:
          mapController.zoomOut();
          break;
      default:
          break;
      }
      return super.onKeyDown(keyCode, event);
  }
  </code></pre>
  
  <p>}</p>
  
  <p>I tryed but can't get a location from a address which was entered by user!
  I need you help!</p>