title: Get City Name From Latitude And Longitude in android Gives Service Not Available Android 4.0.3?
body: <p>I am using the Android 4.0.3 version in apps. Now I want to get the city name or other information from <strong>LATITUDE</strong> and <strong>LONGITUDE</strong> 
  but when I run the apps is show me service not available.</p>
  
  <p><strong>Logcat</strong></p>
  
  <pre><code>  01-10 13:58:29.279: W/System.err(1211): java.io.IOException: Service not Available
      01-10 13:58:29.289: W/System.err(1211):     at android.location.Geocoder.getFromLocation(Geocoder.java:136)
      01-10 13:58:29.299: W/System.err(1211):     at com.example.vixxa.VisitorActivity$CityAsyncTask.doInBackground(VisitorActivity.java:601)
      01-10 13:58:29.319: W/System.err(1211):     at com.example.vixxa.VisitorActivity$CityAsyncTask.doInBackground(VisitorActivity.java:1)
      01-10 13:58:29.329: W/System.err(1211):     at android.os.AsyncTask$2.call(AsyncTask.java:264)
      01-10 13:58:29.329: W/System.err(1211):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
      01-10 13:58:29.339: W/System.err(1211):     at java.util.concurrent.FutureTask.run(FutureTask.java:137)
      01-10 13:58:29.349: W/System.err(1211):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
      01-10 13:58:29.349: W/System.err(1211):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
      01-10 13:58:29.359: W/System.err(1211):     at java.lang.Thread.run(Thread.java:856)
  </code></pre>
  
  <p><strong>CodeAsynctak.java</strong></p>
  
  <pre><code>public class CityAsyncTask extends AsyncTask&lt;String , String,String&gt;
      {
  
          @Override
          protected String doInBackground(String... params) {
  
               Geocoder geocoder = new Geocoder(VisitorActivity.this, Locale.getDefault());
                  try
                  {
                      List&lt;Address&gt; addresses = geocoder.getFromLocation(latitude, longitude, 1);
                      Log.e("Addresses","--&gt;"+addresses);
  
                  }
                  catch (IOException e)
                  {
                      e.printStackTrace();
  
                  }
  
              return null;
          }
  
      }
  </code></pre>