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

   - Nexus 1 (2.3.6)
   - Samsung Galaxy SIII (4.0.4)
   - Nexus S (4.0.4)
   - Galaxy Nexus (4.1.1)

on a Nexus 7 (4.1.1), the method throws a "Service not available" 
IOException. I've also checked Geocoder.isPresent() -- and it returns true.

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.

Any thoughts on what I may be missing?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to