• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

.google/23-Nov-2023-3517

Application/23-Nov-2023-2,1961,439

gradle/wrapper/23-Nov-2023-76

screenshots/23-Nov-2023-

.gitignoreD23-Nov-2023379 3425

CONTRIBUTING.mdD23-Nov-20231.5 KiB3627

LICENSED23-Nov-202311.1 KiB204170

README.mdD23-Nov-20232.1 KiB5940

build.gradleD23-Nov-2023631 2615

gradle.propertiesD23-Nov-2023909 2316

gradlewD23-Nov-20235.5 KiB179122

gradlew.batD23-Nov-20232.3 KiB9166

settings.gradleD23-Nov-2023643 1716

README.md

1
2Android WifiRttScan Sample
3===================================
4
5Sample demonstrates best practices for using WifiRTT APIs in Android. Also, this is a a useful
6application for testing Wifi-RTT enabled phones and access points and validating the estimated
7distance is close to the actual distance between them.
8
9Introduction
10------------
11
12Steps for trying out the sample:
13* Compile and install the mobile app onto your mobile device (for mobile scenario).
14
15This sample demonstrates best practices for using the WifiRtt APIs in Android. The main activity
16lists all access points that are WifiRtt enabled using the [WifiManager][1]. By clicking on one of
17the access points, another activity will launch and initiate [RangingRequest][2] via the
18[WifiRttManager][3]. The activity will display many of the details returned from the access point
19including the distance between the access point and the phone.
20
21[1]: https://developer.android.com/reference/android/net/wifi/WifiManager
22[2]: https://developer.android.com/reference/android/net/wifi/rtt/RangingRequest
23[3]: https://developer.android.com/reference/android/net/wifi/rtt/WifiRttManager
24
25Pre-requisites
26--------------
27
28- Android SDK 28
29- Android Build Tools v27.0.3
30- Android Support Repository
31
32Screenshots
33-------------
34
35<img src="screenshots/main1.png" height="400" alt="Screenshot"/> <img src="screenshots/main2.png" height="400" alt="Screenshot"/> <img src="screenshots/main3.png" height="400" alt="Screenshot"/>
36
37Getting Started
38---------------
39
40This sample uses the Gradle build system. To build this project, use the
41"gradlew build" command or use "Import Project" in Android Studio.
42
43Support
44-------
45
46- Google+ Community: https://plus.google.com/communities/105153134372062985968
47- Stack Overflow: http://stackoverflow.com/questions/tagged/android
48
49If you've found an error in this sample, please file an issue:
50https://github.com/googlesamples/android-WifiRttScan
51
52Patches are encouraged, and may be submitted by forking this project and
53submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.
54
55License
56-------
57Licensed under an Apache 2.0 license. See LICENSE file for details.
58
59