Up to higher level directory | |||
Name | Date | Size | |
---|---|---|---|
.google/ | 22-Oct-2020 | ||
Application/ | 22-Oct-2020 | ||
build.gradle | 22-Oct-2020 | 631 | |
CONTRIBUTING.md | 22-Oct-2020 | 1.5K | |
gradle/ | 22-Oct-2020 | ||
gradle.properties | 22-Oct-2020 | 909 | |
gradlew | 22-Oct-2020 | 5.5K | |
gradlew.bat | 22-Oct-2020 | 2.3K | |
LICENSE | 22-Oct-2020 | 11.1K | |
README.md | 22-Oct-2020 | 2.1K | |
screenshots/ | 22-Oct-2020 | ||
settings.gradle | 22-Oct-2020 | 643 |
1 2 Android WifiRttScan Sample 3 =================================== 4 5 Sample demonstrates best practices for using WifiRTT APIs in Android. Also, this is a a useful 6 application for testing Wifi-RTT enabled phones and access points and validating the estimated 7 distance is close to the actual distance between them. 8 9 Introduction 10 ------------ 11 12 Steps for trying out the sample: 13 * Compile and install the mobile app onto your mobile device (for mobile scenario). 14 15 This sample demonstrates best practices for using the WifiRtt APIs in Android. The main activity 16 lists all access points that are WifiRtt enabled using the [WifiManager][1]. By clicking on one of 17 the 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 19 including 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 25 Pre-requisites 26 -------------- 27 28 - Android SDK 28 29 - Android Build Tools v27.0.3 30 - Android Support Repository 31 32 Screenshots 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 37 Getting Started 38 --------------- 39 40 This sample uses the Gradle build system. To build this project, use the 41 "gradlew build" command or use "Import Project" in Android Studio. 42 43 Support 44 ------- 45 46 - Google+ Community: https://plus.google.com/communities/105153134372062985968 47 - Stack Overflow: http://stackoverflow.com/questions/tagged/android 48 49 If you've found an error in this sample, please file an issue: 50 https://github.com/googlesamples/android-WifiRttScan 51 52 Patches are encouraged, and may be submitted by forking this project and 53 submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details. 54 55 License 56 ------- 57 Licensed under an Apache 2.0 license. See LICENSE file for details. 58 59