Android Guides | Samples

Android.Locations Namespace

Contains the framework API classes that define Android location-based and related services.

Remarks

Contains the framework API classes that define Android location-based and related services.

This API is not the recommended method for accessing Android location.
The Com.Google.Android.Gms.Location, part of Google Play services, is the preferred way to add location-awareness to your app. It offers a simpler API, higher accuracy, low-power geofencing, and more. If you are currently using the android.location API, you are strongly encouraged to switch to the Google Location Services API as soon as possible.

To learn more about the Google Location Services API, see the Location API overview.

Classes

TypeReason
AccuracyEnumerates values returned by several types.
AddressA class representing an Address, i.e, a set of Strings describing a location.
Address+InterfaceConsts
AvailabilityEnumerates values returned by several types and taken as a parameter of several types.
CriteriaA class indicating the application criteria for selecting a location provider.
Criteria+InterfaceConsts
FormatEnumerates values returned by the Format.Degrees, Format.Minutes, and Format.Seconds members and taken as a parameter of the Location.Convert member.
GeocoderA class for handling geocoding and reverse geocoding.
GpsEventEnumerates values returned by several types and taken as a parameter of the Android.Locations.GpsStatus.EventArgs..ctor, and GpsStatus+IListener.OnGpsStatusChanged members.
GpsSatelliteThis class represents the current state of a GPS satellite.
GpsStatusThis class represents the current state of the GPS engine.
GpsStatus+EventArgs
GpsStatus+IListenerUsed for receiving notifications when GPS status has changed.
GpsStatus+INmeaListenerUsed for receiving NMEA sentences from the GPS.
GpsStatus+NmeaEventArgs
ILocationListenerUsed for receiving notifications from the LocationManager when the location has changed.
LocationA data class representing a geographic location.
Location+InterfaceConsts
LocationChangedEventArgs
LocationManagerThis class provides access to the system location services.
LocationProviderAn abstract superclass for location providers.
PowerEnumerates values returned by several types and taken as a parameter of the LocationManager.AddTestProvider member.
ProviderDisabledEventArgs
ProviderEnabledEventArgs
SettingInjectorServiceDynamically specifies the enabled status of a preference injected into the list of app settings displayed by the system settings app
StatusChangedEventArgs