1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 Copyright 2018 The Android Open Source Project
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9     http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
17<sample>
18    <name>WifiRttScan</name>
19    <group>Connectivity</group>
20    <package>com.example.android.wifirttscan</package>
21
22    <!-- change minSdk if needed-->
23    <minSdk>28</minSdk>
24    <compileSdkVersion>28</compileSdkVersion>
25    <targetSdkVersion>28</targetSdkVersion>
26
27    <multiDexEnabled>true</multiDexEnabled>
28
29    <androidX>true</androidX>
30
31    <!-- Include additional dependencies here.-->
32    <!-- dependency>com.google.android.gms:play-services:5.0.+</dependency -->
33
34    <dependency>androidx.appcompat:appcompat:1.0.0-beta01</dependency>
35    <dependency>androidx.constraintlayout:constraintlayout:2.0.0-alpha1</dependency>
36    <dependency>com.google.android.material:material:1.0.0-beta01</dependency>
37
38    <strings>
39        <intro>
40<![CDATA[
41Sample demonstrates best practices for using WifiRTT APIs in Android. Also, this is a a useful
42application for testing Wifi-RTT enabled phones and access points and validating the estimated
43distance is close to the actual distance between them.
44]]>
45        </intro>
46    </strings>
47
48    <template src="base" />
49
50    <metadata>
51    <status>PUBLISHED</status>
52    <categories>Connectivity</categories>
53    <technologies>Android</technologies>
54    <languages>Java</languages>
55    <solutions>Mobile</solutions>
56    <level>ADVANCED</level>
57    <icon>screenshots/big_icon.png</icon>
58    <screenshots>
59        <img>screenshots/main1.png</img>
60        <img>screenshots/main2.png</img>
61        <img>screenshots/main3.png</img>
62    </screenshots>
63    <api_refs>
64        <android>android.net.wifi.ScanResult</android>
65        <android>android.net.wifi.WifiManager</android>
66        <android>android.net.wifi.rtt.RangingRequest</android>
67        <android>android.net.wifi.rtt.RangingResult</android>
68        <android>android.net.wifi.rtt.RangingResultCallback</android>
69        <android>android.net.wifi.rtt.WifiRttManager</android>
70    </api_refs>
71    <description>
72<![CDATA[
73Sample demonstrates best practices for using WifiRTT APIs in Android. Also, this is a a useful
74application for testing Wifi-RTT enabled phones and access points and validating the estimated
75distance is close to the actual distance between them.
76]]>
77    </description>
78    <intro>
79<![CDATA[
80Steps for trying out the sample:
81* Compile and install the mobile app onto your mobile device (for mobile scenario).
82
83This sample demonstrates best practices for using the WifiRtt APIs in Android. The main activity
84lists all access points that are WifiRtt enabled using the [WifiManager][1]. By clicking on one of
85the access points, another activity will launch and initiate [RangingRequest][2] via the
86[WifiRttManager][3]. The activity will display many of the details returned from the access point
87including the distance between the access point and the phone.
88
89[1]: https://developer.android.com/reference/android/net/wifi/WifiManager
90[2]: https://developer.android.com/reference/android/net/wifi/rtt/RangingRequest
91[3]: https://developer.android.com/reference/android/net/wifi/rtt/WifiRttManager
92]]>
93    </intro>
94</metadata>
95</sample>
96