Added in API level 1

android.location


Interfaces

Geocoder.GeocodeListener A listener for asynchronous geocoding results. 
GnssAntennaInfo.Listener Used for receiving GNSS antenna info from the GNSS engine. 
GpsStatus.Listener This interface was deprecated in API level 24. Use GnssStatus.Callback instead. 
GpsStatus.NmeaListener This interface was deprecated in API level 24. use OnNmeaMessageListener instead. 
LocationListener Used for receiving notifications when the device location has changed. 
OnNmeaMessageListener Used for receiving NMEA sentences from the GNSS. 

Classes

Address A class representing an Address, that is, a set of Strings describing a location. 
Criteria This class was deprecated in API level 34. Criteria based APIs are deprecated because they cannot fully capture the complexity of location providers, and encourage bad development practices. Prefer to explicit select the location provider of interest (LocationManager#FUSED_PROVIDER, etc), rather than relying on Criteria. 
Geocoder A class for handling geocoding and reverse geocoding. 
GnssAntennaInfo A class that contains information about a GNSS antenna. 
GnssAntennaInfo.Builder Builder class for GnssAntennaInfo. 
GnssAntennaInfo.PhaseCenterOffset Class containing information about the antenna phase center offset (PCO). 
GnssAntennaInfo.SphericalCorrections Represents corrections on a spherical mapping. 
GnssAutomaticGainControl A class that contains GNSS Automatic Gain Control (AGC) information. 
GnssAutomaticGainControl.Builder Builder for GnssAutomaticGainControl 
GnssCapabilities GNSS chipset capabilities. 
GnssCapabilities.Builder Builder for GnssCapabilities. 
GnssClock A class containing a GNSS clock timestamp. 
GnssMeasurement A class representing a GNSS satellite measurement, containing raw and computed information. 
GnssMeasurementRequest This class contains extra parameters to pass in a GNSS measurement request. 
GnssMeasurementRequest.Builder Builder for GnssMeasurementRequest 
GnssMeasurementsEvent A class implementing a container for data associated with a measurement event. 
GnssMeasurementsEvent.Builder Builder for GnssMeasurementsEvent 
GnssMeasurementsEvent.Callback Used for receiving GNSS satellite measurements from the GNSS engine. 
GnssNavigationMessage A class containing a GNSS satellite Navigation Message. 
GnssNavigationMessage.Callback Used for receiving GNSS satellite Navigation Messages from the GNSS engine. 
GnssSignalType This class represents a GNSS signal type. 
GnssStatus This class represents the current state of the GNSS engine and is used in conjunction with GnssStatus.Callback
GnssStatus.Builder Builder class to help create new GnssStatus instances. 
GnssStatus.Callback Used for receiving notifications when GNSS events happen. 
GpsSatellite This class was deprecated in API level 24. use GnssStatus and GnssStatus.Callback. 
GpsStatus This class was deprecated in API level 24. Use GnssStatus instead. 
Location A data class representing a geographic location. 
LocationManager This class provides access to the system location services. 
LocationProvider This class was deprecated in API level 31. This class is incapable of representing unknown provider properties and may return incorrect results on the rare occasion when a provider's properties are unknown. Prefer using LocationManager#getProviderProperties(String) to retrieve ProviderProperties instead. 
LocationRequest An encapsulation of various parameters for requesting location via LocationManager
LocationRequest.Builder A builder class for LocationRequest
SettingInjectorService Dynamically specifies the summary (subtitle) and enabled status of a preference injected into the list of app settings displayed by the system settings app

For use only by apps that are included in the system image, for preferences that affect multiple apps.