Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7494367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T17:30:03+00:00 2026-05-29T17:30:03+00:00

Geocoder geocoder = new Geocoder(getApplicationContext(), Locale.ENGLISH); try { List<Address> addresses = geocoder.getFromLocation(lat,lon, 1); <–Exception

  • 0
Geocoder geocoder = new Geocoder(getApplicationContext(), Locale.ENGLISH);
try {
    List<Address> addresses =  geocoder.getFromLocation(lat,lon, 1); <--Exception

This code cause exception Service not Available.
Can anyone help me? I’ve read that it is a bug for A 2.2, api 10 is A 2.3.3 so thoretically it should work.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T17:30:05+00:00Added an answer on May 29, 2026 at 5:30 pm

    ANSWER:

    First if you are using the emulator, try setting the “target” for the AVD device to one of the “Google APIs” instead of the basic “Android” sdk. So if you want to target 2.3.3 use “Google APIs (Google Inc.) – API Level 10” and not “Android 2.3.3 – API Level 10”.

    BACKGROUND INFO

    The Google APIs addon includes a backend service implementation(search “geocoder backend”) that is required for the Geocoder.getFromLocation... methods to work.

    The Geocoder class requires a backend service that is not included in the core android framework

    That is why your AVD must target Google APIs for these methods to work. If that doesn’t work try testing on a real device. Other than a possible bug, the reason for getting this exception is either a problem with the internet/lack of connection, or more likely there is no backend service on that device.

    Supposedly most devices that include Google services and apps like Maps, etc will have a backend implemented. I don’t know how accurate this is.

    There is also a method starting with API9, Geocoder.isPresent() that will return true if there is a backend implementation present. However, I have found this to be unreliable since testing it on an Amazon Kindle Fire returned true, but when making a getFromLocationName() call I still got an IOException: Service Not Available

    It seems the most reliable way to determine if a backend is present is to just make the getFromLocation... call and see if your addresses field is null or if the List is empty. There is a bit of ambiguity in that these methods may also return a null or empty list if there are simply no matches found.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Geocoder g = new Geocoder(this, Locale.getDefault()); java.util.List<android.location.Address> result = null; // testing try{ result
I have the following code in my Android program List<Address> addressList = geoCoder.getFromLocation(37.790551,-122.433931, 1);
i am creating a Geocoder object like. Geocoder geoCoder = new Geocoder(getBaseContext(), Locale.getDefault()); here
Using the Google Geocoder v3, if I try to geocode 20 addresses, I get
I'm using Google's Geocoder to find lat lng coordinates for a given address. var
Error in splitting results[0].geometry.location . I am trying to split this geocoder = new
I have this piece of code , geocoder = new GClientGeocoder(); var state; function
function getNewMessages(id) { clearJqGrid(); var lat; var lng; var jsonData; var geocoder = new
I need to geocode adresses (get lat/long from addresses) using in .Net, to store
I'm new at this, but I have a Google V3 map that loads from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.