reverse Geocoder (getFromLocation(lat, lnt) not reliable

by sunny » Tue, 02 Nov 2010 13:36:19 GMT

Sponsored Links
 Dear all,
I find that geocoder apis particularly getFromLocation using Lat and Lnt is
not very reliable. I am noticing this behavior more after I upgraded to
android 2.2 on my Droid. I get an invalid argument exception for Latitude.
The funny thing it is not consistent in this behavior. It works some times
without any problem.

any tips?



reverse Geocoder (getFromLocation(lat, lnt) not reliable

by TreKing » Tue, 02 Nov 2010 23:04:11 GMT


Base on posts I've seen, I think people employ workarounds like wrapping the
call in a try catch and trying to get a valid value 3 or so times, waiting a
second or so between each attempt, to try to get a good value before giving
up and reporting an error.

TreKing <> ; - Chicago
transit tracking app for Android-powered devices


Sponsored Links

reverse Geocoder (getFromLocation(lat, lnt) not reliable

by sunny » Mon, 08 Nov 2010 07:03:32 GMT

 yes, it is in a try and catch and i run it within a while loop to retry if
it fails. I also log the exception caught when it fails. its just not
consistent. Is there a known issue with geocoder ?


reverse Geocoder (getFromLocation(lat, lnt) not reliable

by Bj枚rn Brala » Tue, 09 Nov 2010 02:54:34 GMT

 Im thinking of writing a class to use the new http geocoder of the v3 of the
API, i only read about problems online and it just won't work here... Sigh.

2010/11/8 sunny <>


Other Threads

1. Can't get hello android printed

Hi All,

I am following the hello world example and when I run it through
eclipse, the emulater starts showing android...
then it comes in to the system and asks me to press menu to unlock.
When I do it, it justs unlocks but there no helloworld or application
window, just the normal android desktop!!!!! Am I missing somthing??

Following is the code I am running (which is the copy of the example)

package com.example.helloandroid;

import android.os.Bundle;
import android.widget.TextView;

public class HelloAndroid extends Activity {
    /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {
        TextView tv = new TextView(this);
        tv.setText("Hello, Android");

Why isnt the helloworld window coming?? Any help plss



2. My ADP won't load! Can't get to recovery or fastboot either! No SPL at all just blue led

Hi, i just did something very bad to my G1 and i can't pass the very
first screen that reads "android + logo", no access to SPL at all:
- HOME+POWER won't get me to recovery mode
- BACK+POWER won't get me to fastboot either
- CAMERA+POWER won't get me anywhere!

The only thing i'm able to do is SCROLL+POWER that gets me to a BLUE
LED, but blank screen.

Anything else i do, my ADP freezes at the very first screen!

If i connect to my PC using the USB cable the LED lights up with the
AMBER "charging" color.

Anyone knows anything i can do to make my ADP revive? Or is my ADP
dead for good?

What i did to get to this state: I've tried to downgrade the RADIO
(OTA) to the 1.1 version encountered in HTC website.



3. Questions about getConfiguration

4. downloadable application packaging

5. enable disable status of a menu item

6. Runtime Exception error, please app does not run.

7. Built-In Search Bar Widget??