Skip to content

Most visited

Recently visited


Provides classes which allow applications to use Wi-Fi RTT (IEEE 802.11mc) to measure distance to supporting Access Points and peer devices.

The primary entry point to Wi-Fi RTT capabilities is the WifiRttManager class, which is acquired by calling Context.getSystemService(Context.WIFI_RTT_RANGING_SERVICE)

Some APIs may require the following user permissions:

Usage of the API is also gated by the device's Location Mode: whether it permits Wi-Fi based location to be queried.

Note: Not all Android-powered devices support Wi-Fi RTT functionality. If your application only works with Wi-Fi RTT (i.e. it should only be installed on devices which support Wi-Fi RTT), declare so with a <uses-feature> element in the manifest file:

<manifest ...>
    <uses-feature android:name="android.hardware.wifi.rtt" />

Alternatively, if your application does not require Wi-Fi RTT but can take advantage of it if available, you can perform the check at run-time in your code using hasSystemFeature(String) with FEATURE_WIFI_RTT:



LocationCivic Location Civic Report (LCR). 
LocationConfigurationInformation The Device Location Configuration Information (LCI) specifies the location information of a peer device (e.g. 
RangingRequest Defines the ranging request to other devices. 
RangingRequest.Builder Builder class used to construct RangingRequest objects. 
RangingResult Ranging result for a request started by startRanging(RangingRequest, RangingResultCallback, Handler)
RangingResultCallback Base class for ranging result callbacks. 
WifiRttManager This class provides the primary API for measuring distance (range) to other devices using the IEEE 802.11mc Wi-Fi Round Trip Time (RTT) technology. 
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields


WeChat で Google Developers をフォローする

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)