Thanks for a response ! As nobody else has anything to say I'm stumped ;-) Is it possible Google is blocking location services based on my ip's geographic location (e.g. Australia) when using the emulator ?
To repeat myself, I've tested it on AVDs: 2.1 & 2.2 using both API level 7 & 8. 2.1 Level 7 Emulation only lists GPS support 06-08 17:30:38.330: DEBUG/LocationManager(197): getAllProviders 06-08 17:30:38.330: VERBOSE/TripStart(197): Listing supported providers 06-08 17:30:38.341: VERBOSE/TripStart(197): ....gps supported 06-08 17:30:38.351: ERROR/LocationManagerService(64): isProviderEnabled got exception: 06-08 17:30:38.351: ERROR/LocationManagerService(64): java.lang.IllegalArgumentException: provider=network 06-08 17:30:38.351: ERROR/LocationManagerService(64): at com.android.server.LocationManagerService._isProviderEnabledLocked(LocationManagerService.java: 1385) 06-08 17:30:38.351: ERROR/LocationManagerService(64): at com.android.server.LocationManagerService.isProviderEnabled(LocationManagerService.java: 1359) 06-08 17:30:38.351: ERROR/LocationManagerService(64): at android.location.ILocationManager $Stub.onTransact(ILocationManager.java:237) 06-08 17:30:38.351: ERROR/LocationManagerService(64): at android.os.Binder.execTransact(Binder.java:287) 06-08 17:30:38.351: ERROR/LocationManagerService(64): at dalvik.system.NativeStart.run(Native Method) 2.2 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 05-31 01:50:14.421: VERBOSE/TripStart(311): java.io.IOException: Service not Available The app works on an HTC Desire but its a pain to develop & debug without the above emulator functionality. Richard On Jun 5, 10:24 am, Kugelschlag <[email protected]> wrote: > 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

