Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
.google/ | 03-May-2024 | - | 35 | 17 | ||
Application/ | 03-May-2024 | - | 2,196 | 1,439 | ||
gradle/wrapper/ | 03-May-2024 | - | 7 | 6 | ||
screenshots/ | 03-May-2024 | - | ||||
.gitignore | D | 03-May-2024 | 379 | 34 | 25 | |
CONTRIBUTING.md | D | 03-May-2024 | 1.5 KiB | 36 | 27 | |
LICENSE | D | 03-May-2024 | 11.1 KiB | 204 | 170 | |
README.md | D | 03-May-2024 | 2.1 KiB | 59 | 40 | |
build.gradle | D | 03-May-2024 | 631 | 26 | 15 | |
gradle.properties | D | 03-May-2024 | 909 | 23 | 16 | |
gradlew | D | 03-May-2024 | 5.5 KiB | 179 | 122 | |
gradlew.bat | D | 03-May-2024 | 2.3 KiB | 91 | 66 | |
settings.gradle | D | 03-May-2024 | 643 | 17 | 16 |
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