title: android problem to get latitude & longitude from a given address
body: <p>I am trying find lat &amp; long from user given address, for that i am using following code,</p>
  
  <pre><code>GeoPoint pointForEnterAddr;
  
  
  try {
  
      List&lt;Address&gt; address = coder.getFromLocationName(enterAddr, 1);
  
                      if (address == null)
  
                       pointForEnterAddr = null;
  
                      else {
                          Address location = address.get(0);
                          System.out.println("Lat in button click :"
                                  + location.getLatitude());
                          System.out.println("Long in button click :"
                                  + location.getLongitude());
  
  
  pointForEnterAddr = new GeoPoint((int) (location.getLatitude() * 1E6),
                      (int) (location.getLongitude() * 1E6));
  
  
  }
   catch (Exception ex) {
                      System.out.println("Error here :" + ex);
                  }
  </code></pre>
  
  <p>But everytime it coming to catch part &amp; shows exception,
  java.io.IOException: Service not Available</p>
  
  <p>How can i solve it and get proper output? Plz tell me.</p>
  
  <p>Thank you</p>