title: Android Geocoder.getLocationFromName() throws IOException: Service not available on Device
body: <p>I am using the Geocoder.getLocationFromName() method on both the emulator and my phone (Nexus S with Android 4.1) and I get the following exception:</p>
  
  <pre><code>java.io.IOException: Service not Available
  </code></pre>
  
  <p>There are a number of questions about this appearing on the emulator (<a href="https://stackoverflow.com/questions/5205650/geocoder-getfromlocation-throws-ioexception-on-android-emulator">example</a>), and most of them say that it is a specific version of the emulator that has the problem. However, the exception appears both on my AVDs (2.3 and 4.1) and my phone.</p>
  
  <p>Both my phone and the AVDs have internet connection. My API version is 16 (android 4.1), but I also tried with older ones. Both AVDs include Google APIs.</p>
  
  <p>Any ideas what is going on here?</p>
  
  <p>This is the relevant code snippet:</p>
  
  <pre><code>Geocoder myGeocoder = new Geocoder(getApplicationContext(), Locale.getDefault());
  List&lt;Address&gt; newAddresses = myGeocoder.getFromLocationName(arg0.toString(), 10);
  </code></pre>
  
  <p>And this is my manifest:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.asdasd" android:versionCode="6" android:versionName="1.3.1"&gt;
      &lt;uses-sdk android:minSdkVersion="16" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
      &lt;application android:icon="@drawable/ic_launcher_asdasd"
          android:label="@string/app_name"&gt;
          &lt;activity android:name=".AsdasdActivity" android:label="@string/app_name"
              android:screenOrientation="portrait" android:windowSoftInputMode="stateHidden"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;activity android:name="com.google.ads.AdActivity"
              android:configChanges="keyboard|keyboardHidden|orientation" /&gt;
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>