title: Android Geocoding - not running in other device
body: <p>I use <a href="http://wptrafficanalyzer.in/blog/android-geocoding-showing-user-input-location-on-google-map-android-api-v2/" rel="nofollow">this</a> tutorial to search locations. But on my device this app does not work, my device is with android 4.1.2 </p>
  
  <p>With my emulator this app works perfect. And I tested the app with other real device with android 2.3.6 and on that device again works perfect.</p>
  
  <p>How this is possible?</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.mitko.razhodnagorivo1"
  android:versionCode="1"
  android:versionName="1.0" &gt;
  
  &lt;uses-sdk
      android:minSdkVersion="8"
      android:targetSdkVersion="19" /&gt;
  
  
  &lt;supports-screens
      android:smallScreens="true"
      android:normalScreens="true"
      android:largeScreens="true"
      android:anyDensity="true"
      /&gt;
  
  
  &lt;permission
          android:name="com.mitko.razhodnagorivo1.permission.MAPS_RECEIVE"
          android:protectionLevel="signature"/&gt;
  &lt;uses-permission android:name="com.mitko.razhodnagorivo1.permission.MAPS_RECEIVE"/&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.CHANGE_NETWORK_STATE" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /&gt;
  &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt;
  &lt;uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
  
  
  &lt;uses-feature
          android:glEsVersion="0x00020000"
          android:required="true"/&gt;
  
  
  
  &lt;application
      android:allowBackup="true"
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme"
      android:debuggable="true"
      android:vmSafeMode="true"
      android:allowClearUserData="true"
      android:hardwareAccelerated="true"
      &gt;
  
  
      &lt;activity
          android:noHistory="true"
          android:name="com.mitko.razhodnagorivo1.Languages"
          android:label="@string/app_name"
          android:screenOrientation="portrait"&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.mitko.razhodnagorivo1.razhod.PytCena.RazhodCena"
                                                      android:label="@string/app_name"
                                                      android:screenOrientation="portrait"&gt;
                                              &lt;/activity&gt;
  
  
                                              &lt;activity
  
                                                      android:name="com.mitko.razhodnagorivo1.razhod.PytCena.LitriKm"
                                                      android:label="@string/app_name" &gt;
                                              &lt;/activity&gt;
  
  
                                              &lt;activity
  
                                                      android:name="com.mitko.razhodnagorivo1.razhod.PytCena.RazhodNa100Km"
                                                      android:label="@string/app_name"
                                                      android:screenOrientation="portrait"&gt;
                                              &lt;/activity&gt;
  
  
  
  
  
                                              &lt;activity
                                                  android:name="com.mitko.razhodnagorivo1.razhod.PytCenaGoogleMaps.RazhodCenaGoogleMaps2"
                                                  android:screenOrientation="portrait"
                                                  android:label="@string/app_name" &gt;
                                              &lt;/activity&gt;
  
                                              &lt;meta-data
                                                      android:name="com.google.android.maps.v2.API_KEY"
                                                      android:value="AIzaSyAMCbpjl8DHbfr3MJ4-51mkIobb0XI1fYE"/&gt;
  
  
  
                                          &lt;/application&gt;
  
                                      &lt;/manifest&gt;
  </code></pre>
  
  <p>Log-cat errors:</p>
  
  <pre><code>02-09 16:40:29.727  22094-22268/com.mitko.razhodnagorivo1 W/System.err﹕ java.io.IOException: Service not Available
  02-09 16:40:29.727  22094-22268/com.mitko.razhodnagorivo1 W/System.err﹕ at android.location.Geocoder.getFromLocationName(Geocoder.java:178)
  02-09 16:40:29.727  22094-22268/com.mitko.razhodnagorivo1 W/System.err﹕ at com.mitko.razhodnagorivo1.razhod.PytCenaGoogleMaps.RazhodCenaGoogleMaps2$GeocoderTask.doInBackground(RazhodCenaGoogleMaps2.java:204)
  02-09 16:40:29.727  22094-22268/com.mitko.razhodnagorivo1 W/System.err﹕ at com.mitko.razhodnagorivo1.razhod.PytCenaGoogleMaps.RazhodCenaGoogleMaps2$GeocoderTask.doInBackground(RazhodCenaGoogleMaps2.java:194)
  02-09 16:40:29.727  22094-22268/com.mitko.razhodnagorivo1 W/System.err﹕ at android.os.AsyncTask$2.call(AsyncTask.java:287)
  02-09 16:40:29.727  22094-22268/com.mitko.razhodnagorivo1 W/System.err﹕ at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
  02-09 16:40:29.727  22094-22268/com.mitko.razhodnagorivo1 W/System.err﹕ at java.util.concurrent.FutureTask.run(FutureTask.java:137)
  02-09 16:40:29.727  22094-22268/com.mitko.razhodnagorivo1 W/System.err﹕ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
  02-09 16:40:29.727  22094-22268/com.mitko.razhodnagorivo1 W/System.err﹕ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
  02-09 16:40:29.727  22094-22268/com.mitko.razhodnagorivo1 W/System.err﹕ at java.lang.Thread.run(Thread.java:856)
  </code></pre>