diff options
author | Mark Vandevoorde <mtv@google.com> | 2010-05-21 15:43:26 -0700 |
---|---|---|
committer | Mark Vandevoorde <mtv@google.com> | 2010-05-21 15:43:26 -0700 |
commit | 01ac80b715881db22bde8b31633dd8a4dc375389 (patch) | |
tree | 2a49fc9e6ff824f729f64bdacb3b48835d99e367 /services/java/com/android/server | |
parent | 11c6847d5960edeb0f15d0fd34045c89bd302d41 (diff) | |
download | frameworks_base-01ac80b715881db22bde8b31633dd8a4dc375389.zip frameworks_base-01ac80b715881db22bde8b31633dd8a4dc375389.tar.gz frameworks_base-01ac80b715881db22bde8b31633dd8a4dc375389.tar.bz2 |
Add Geocorder.isImplemented()
The Geocorder interface is not part of the Android core. It
requires a backend service which may or may not be available
on a device. The new isImplemented static method allows
apps to discover whether the Geocorder is in fact available
on the device.
Change-Id: I2b5cf7bcc9cce4766bcbb156e91edf34b01f9296
Diffstat (limited to 'services/java/com/android/server')
-rw-r--r-- | services/java/com/android/server/LocationManagerService.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/services/java/com/android/server/LocationManagerService.java b/services/java/com/android/server/LocationManagerService.java index 74249f3..14d5995 100644 --- a/services/java/com/android/server/LocationManagerService.java +++ b/services/java/com/android/server/LocationManagerService.java @@ -1940,6 +1940,10 @@ public class LocationManagerService extends ILocationManager.Stub implements Run // Geocoder + public Boolean geocoderIsImplemented() { + return mGeocodeProvider != null; + } + public String getFromLocation(double latitude, double longitude, int maxResults, GeocoderParams params, List<Address> addrs) { if (mGeocodeProvider != null) { |