From b00e37de181dc2f816962bc9301f64dd2a773c2a Mon Sep 17 00:00:00 2001
From: Scott Main Location and maps-based applications are compelling for mobile device users. You
-can build these capabilities into your applications using the classes of the {@link
-android.location} package and the Google Maps external library. The sections below provide details.
+ Location and maps-based apps offer a compelling experience on mobile devices. You
+can build these capabilities into your app using the classes of the {@link
+android.location} package and the Google Maps Android API. The sections below provide
+an introduction to how you can add the features.
Android gives your applications access to the location services supported by
-the device through the classes in the {@code android.location} package. The
+the device through classes in the {@code android.location} package. The
central component of the location framework is the
{@link android.location.LocationManager} system service, which provides APIs to
determine location and bearing of the underlying device (if available). For more information, read the guide to Location Strategies. For more information about acquiring the user location, read the Location Strategies guide. To make it easier for you to add powerful mapping capabilities to your
-application, Google provides a Maps external library that includes the
-com.google.android.maps package. The classes of the com.google.android.maps
-package offer built-in downloading, rendering, and caching of Maps tiles, as
-well as a variety of display options and controls. With the Google Maps Android API, you can add maps to your app that are based on Google
+Maps data. The API automatically handles access to Google Maps servers, data downloading,
+map display, and touch gestures on the map. You can also use API calls to add markers,
+polygons and overlays, and to change the user's view of a particular map area. The key class in the Maps package is
- The key class in the Google Maps Android API is
+{@code MapView}.
+A {@code MapView}
+displays a map with data obtained
+from the Google Maps service. When the
+{@code MapView}
+has focus, it will capture
keypresses and touch gestures to pan and zoom the map automatically, including
handling network requests for additional maps tiles. It also provides all of the
UI elements necessary for users to control the map. Your application can also
-use MapView class methods to control the MapView programmatically and draw a
-number of Overlay types on top of the map. In general, the MapView class provides a wrapper around the Google Maps API
-that lets your application manipulate Google Maps data through class methods,
-and it lets you work with Maps data as you would other types of Views. The Maps external library is not part of the standard Android library, so it
-may not be present on some compliant Android-powered devices. Similarly, the
-Maps external library is not included in the standard Android library provided
-in the SDK. So that you can develop using the classes of the
-com.google.android.maps package, the Maps external library is made available to
-you as part of the Google APIs add-on for the Android SDK. To learn more about the Maps external library and how to download and use the
-Google APIs add-on, visit http://code.google.com/android/add-ons/google-apis For your convenience, the Google APIs add-on is also available as a downloadable component from
-the Android SDK Manager (see Exploring the
-SDK). Note: In order to display Google Maps data in a
-MapView, you must register with the Google Maps service and obtain a Maps API
-Key. For information about how to get a Maps API Key, see Obtaining
-a Maps API Key.Topics
+ In this document
- See Also
-
-Location Services
Google Maps External Library
+Google Maps Android API
-com.google.android.maps.MapView, a subclass of
-{@link android.view.ViewGroup ViewGroup}. A MapView displays a map with data obtained
-from the Google Maps service. When the MapView has focus, it will capture
+
The Google Maps Android APIs are not included in the Android platform, +but are available on any device +with the Google Play Store running Android 2.2 or higher, through +Google Play services.
+ +To integrate Google Maps into your app, you need to install the Google Play services +libraries for your Android SDK. For more details, read about Google Play services.
+ -- cgit v1.1