I have seen the same issue when I updated from 2.1 and API Level 7
(where it works) to 2.2 API Level 8 (where it does not).

Seems to be in the level 8 package.  I also noticed quite a bit of
slowdown in the map view scrolling after updating to 2.2.

Anybody else see this?

Tested on Windows 7 using Eclipse.

Kugelschlag


On May 30, 7:50 pm, Richard <[email protected]> wrote:
> I have been unable to get reverse geocoding wokring under either 2.1
> or 2.2 on the emulators. Tested on both mac/eclipse & ubuntu/eclipse.
>
> I am sending manual decimal coordinates via DDMS and have
> ACCESS_FINE_LOCATION & INTERNET permissions in my manifest file.
>
> On an actual phone (HTC Desire) it functions properly.
>
> On 2.2 api level 8 Emulation
> 05-31 01:49:14.990: VERBOSE/TripStart(311): Listing supported
> providers
> 05-31 01:49:14.990: VERBOSE/TripStart(311): ....network supported
> 05-31 01:49:14.990: VERBOSE/TripStart(311): ....passive supported
> 05-31 01:49:14.990: VERBOSE/TripStart(311): ....gps supported
>
> The following code throws the exception below
>
> Location l = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);
> List<Address> list = geocoder.getFromLocation(l.getLatitude(),
> l.getLongitude(), 1);
>
> 05-31 01:50:14.421: VERBOSE/TripStart(311): getting last know location
> Lat: -34:33:16.2 Lon: 151:34:30
> 05-31 01:50:14.421: VERBOSE/TripStart(311): java.io.IOException:
> Service not Available
>
> On 2.1 api level 7 Emulation
> 05-31 02:30:57.713: DEBUG/LocationManager(286): getAllProviders
> 05-31 02:30:57.713: VERBOSE/TripStart(286): Listing supported
> providers
> 05-31 02:30:57.723: VERBOSE/TripStart(286): ....gps supported
>
> as one one cant use the NETWORK_PROVIDER, it results in a
> 05-31 02:30:57.753: ERROR/LocationManagerService(64):
> isProviderEnabled got exception:
> 05-31 02:30:57.753: ERROR/LocationManagerService(64):
> java.lang.IllegalArgumentException: provider=network
>
> I have been looking for docs on this and can find very little
> information on the above to confirm whether it should or should not
> work.
>
> I would be very grateful if someone could respond with some guidance
> on this issue.
>
> thanks.

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

Reply via email to