When I run the "Location Address" sample found here: https://github.com/googlesamples/android-play-location
The app only fetches the address when connected to WiFi. When I turn WiFi off and use LTE I see "Sorry, the service is not available."
I'm trying to transfer this code to my own project but I want this to work using mobile internet as well as WiFi.
Does anyone know why this is happening?
logcat following timeout:
09-28 21:05:40.219 16344-19027/com.google.android.gms.location.sample.locationaddress E/fetch-address-intent-service﹕ Sorry, the service is not available
java.io.IOException: Timed out waiting for response from server
at android.location.Geocoder.getFromLocation(Geocoder.java:136)
at com.google.android.gms.location.sample.locationaddress.FetchAddressIntentService.onHandleIntent(FetchAddressIntentService.java:92)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.os.HandlerThread.run(HandlerThread.java:61)