Wednesday, February 22, 2012

[android-developers] Re: Service not available

On Feb 21, 4:05 pm, ajay talreja <ajayt...@gmail.com> wrote:
> Did u checked the code...............i think there can be problem in
> the code also for reverse geocoding.......please check.......
>

> > > Geocoder gcd = new Geocoder(this, Locale.getDefault());
> > > List<Address> addresses =
> > > gcd.getFromLocation(loc.getLatitude(),
> > > loc.getLongitude(),100);

You get a service unavailable error when using the getFromLocation
method ?

If yes, I recently got this error, your code is correct but there is
an known issue with the android terminal emulator concerning the
geocoder.
To resolve this, you could use your mobile phone as a debug device.

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment