diff options
| author | Android (Google) Code Review <android-gerrit@google.com> | 2009-04-21 17:31:01 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-04-21 17:31:01 -0700 |
| commit | 22b8f5e4b7b0ddd7ed5c90a8710036b549e8858d (patch) | |
| tree | 56957a58de932247be73d355cbec86f0b02c19c3 /location | |
| parent | 375cbb47ff721a26b62385211b82a7cf26db0395 (diff) | |
| parent | 71fd04616ba5b63f2ba9431e5ad5acf547f5f74d (diff) | |
| download | frameworks_base-22b8f5e4b7b0ddd7ed5c90a8710036b549e8858d.zip frameworks_base-22b8f5e4b7b0ddd7ed5c90a8710036b549e8858d.tar.gz frameworks_base-22b8f5e4b7b0ddd7ed5c90a8710036b549e8858d.tar.bz2 | |
Merge change 387 into donut
* changes:
Geocoder: Document behavior when no backend service is available.
Diffstat (limited to 'location')
| -rw-r--r-- | location/java/android/location/Geocoder.java | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/location/java/android/location/Geocoder.java b/location/java/android/location/Geocoder.java index 709ad23..2ce1273 100644 --- a/location/java/android/location/Geocoder.java +++ b/location/java/android/location/Geocoder.java @@ -37,6 +37,10 @@ import java.util.List; * reverse geocoded location description may vary, for example one * might contain the full street address of the closest building, while * another might contain only a city name and postal code. + * + * The Geocoder class requires a backend service that is not included in + * the core android framework. The Geocoder query methods will return an + * empty list if there no backend service in the platform. */ public final class Geocoder { private static final String TAG = "Geocoder"; @@ -94,8 +98,8 @@ public final class Geocoder { * @param longitude the longitude a point for the search * @param maxResults max number of addresses to return. Smaller numbers (1 to 5) are recommended * - * @return a list of Address objects or null if no matches were - * found. + * @return a list of Address objects. Returns null or empty list if no matches were + * found or there is no backend service available. * * @throws IllegalArgumentException if latitude is * less than -90 or greater than 90 @@ -143,7 +147,8 @@ public final class Geocoder { * @param locationName a user-supplied description of a location * @param maxResults max number of results to return. Smaller numbers (1 to 5) are recommended * - * @return a list of Address objects or null if no matches were found. + * @return a list of Address objects. Returns null or empty list if no matches were + * found or there is no backend service available. * * @throws IllegalArgumentException if locationName is null * @throws IOException if the network is unavailable or any other @@ -192,7 +197,8 @@ public final class Geocoder { * @param upperRightLatitude the latitude of the upper right corner of the bounding box * @param upperRightLongitude the longitude of the upper right corner of the bounding box * - * @return a list of Address objects or null if no matches were found. + * @return a list of Address objects. Returns null or empty list if no matches were + * found or there is no backend service available. * * @throws IllegalArgumentException if locationName is null * @throws IllegalArgumentException if any latitude is |
