title: Android google maps. Add marker by address
body: <p>I added map in android application and want to add marker on map by address. It is possible?
  I already tried to get long and lat with <code>Geocoder</code>, but there I get error <code>Service not Available</code>.</p>
  
  <p>my code:</p>
  
  <pre><code>Geocoder geocoder = new Geocoder(getBaseContext());
          List&lt;Address&gt; addresses = null;
  
          try {
              addresses = geocoder.getFromLocationName(event.getPlace(), 20);
              System.out.println(addresses);
  //          for (int i = 0; i &lt; addresses.size(); i++) { // MULTIPLE MATCHES
  //
  //              Address addr = addresses.get(i);
  //
  //              double latitude = addr.getLatitude();
  //              double longitude = addr.getLongitude(); // DO SOMETHING WITH
  //                                                      // VALUES
  //
  //              System.out.println(latitude);
  //              System.out.println(longitude);
  //
  //          }
          } catch (IOException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
  </code></pre>