bkurzius
bkurzius

Reputation: 4068

Android / Nexus 7 throwing IOException for Geocoder.getFromLocationName()

I'm trying to use Geocoder.getFromLocationName() and although the same search string works fine on these actual devices:

on my Nexus 7 (4.1.1), the method throws a "Service not available" IOException

Here is the simplified code:

Geocoder geocoder = new Geocoder(mContext);
List<Address> addressFromSearch = geocoder.getFromLocationName("10918", 1);

I've also tried each device using mobile data and wifi-only and they all work fine. So far the only device/OS that does not work is the Nexus 7. I've also checked Geocoder.isPresent() -- and it returns true.

Any thoughts on what I may be missing?

Upvotes: 3

Views: 1171

Answers (2)

Lettings Mall
Lettings Mall

Reputation: 300

I also get this issue on samsung galaxy tab 2 android 4.0.4, I'm going to see if theres an update but definitely I'm up voting the issue.

Looks like there is a work around for my device!

If you reboot your machine on the samsung galaxy tab 2...it actually starts working!...thats what I call a work around!

Upvotes: 0

Martin
Martin

Reputation: 11

After the OTA-Update for Galaxy Nexus to 4.1.2 this problem is solved finally. It was a bug regarding the Android version 4.1.1

Upvotes: 1

Related Questions