├── BluetoothLeChat ├── app │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── values │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ └── layout │ │ │ │ └── activity_main.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── bluetoothlechat │ │ │ │ ├── Extensions.kt │ │ │ │ ├── chat │ │ │ │ ├── DeviceConnectionState.kt │ │ │ │ ├── LocalMessageViewHolder.kt │ │ │ │ └── RemoteMessageViewHolder.kt │ │ │ │ ├── scan │ │ │ │ └── DeviceScanViewState.kt │ │ │ │ ├── bluetooth │ │ │ │ └── Message.kt │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ └── proguard-rules.pro ├── settings.gradle ├── screenshots │ ├── 3-chat.png │ ├── 1-launch.png │ └── 2-pair-prompt.png ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── .gitignore ├── gradle.properties └── build.gradle ├── CronetKotlin ├── app │ ├── .gitignore │ └── src │ │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ └── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ └── java │ │ │ └── com │ │ │ └── example │ │ │ └── android │ │ │ └── connectivity │ │ │ └── cronetsample │ │ │ └── MainActivity.kt │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── android │ │ └── connectivity │ │ └── cronetsample │ │ └── ExampleUnitTest.kt ├── settings.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── .gitignore └── .google │ └── packaging.yaml ├── NearbyMessagesDevices ├── app │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── styles.xml │ │ │ └── values-w820dp │ │ │ │ └── dimens.xml │ │ │ └── AndroidManifest.xml │ ├── proguard-rules.pro │ └── build.gradle ├── settings.gradle ├── .gitignore ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── build.gradle ├── gradle.properties └── .google │ └── packaging.yaml ├── BeamLargeFiles ├── settings.gradle ├── build.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── Application │ └── src │ │ └── main │ │ ├── assets │ │ └── stargazer_droid.jpg │ │ └── res │ │ ├── drawable-hdpi │ │ ├── tile.9.png │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ └── ic_launcher.png │ │ ├── drawable-xhdpi │ │ └── ic_launcher.png │ │ ├── drawable-xxhdpi │ │ └── ic_launcher.png │ │ ├── menu │ │ └── main.xml │ │ ├── values-v21 │ │ ├── base-colors.xml │ │ └── base-template-styles.xml │ │ ├── values-v11 │ │ └── template-styles.xml │ │ ├── values-sw600dp │ │ ├── template-dimens.xml │ │ └── template-styles.xml │ │ └── values │ │ └── template-dimens.xml ├── .google │ └── packaging.yaml ├── gradle.properties └── README.md ├── BluetoothLeGatt ├── settings.gradle ├── build.gradle ├── screenshots │ ├── 1-main.png │ ├── 2-detail.png │ └── icon-web.png ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── Application │ └── src │ │ └── main │ │ └── res │ │ ├── drawable-hdpi │ │ ├── tile.9.png │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ └── ic_launcher.png │ │ ├── drawable-xhdpi │ │ └── ic_launcher.png │ │ ├── drawable-xxhdpi │ │ └── ic_launcher.png │ │ ├── values-v21 │ │ ├── base-colors.xml │ │ └── base-template-styles.xml │ │ ├── values-v11 │ │ └── template-styles.xml │ │ ├── values-sw600dp │ │ ├── template-dimens.xml │ │ └── template-styles.xml │ │ ├── layout │ │ ├── actionbar_indeterminate_progress.xml │ │ └── listitem_device.xml │ │ ├── values │ │ ├── base-strings.xml │ │ └── template-dimens.xml │ │ └── menu │ │ ├── main.xml │ │ └── gatt_services.xml ├── .google │ └── packaging.yaml └── gradle.properties ├── NearbyConnectionsWalkieTalkie ├── app │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ └── values │ │ │ │ │ ├── drawables.xml │ │ │ │ │ ├── strings.xml │ │ │ │ │ ├── styles.xml │ │ │ │ │ └── colors.xml │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── google │ │ │ │ └── location │ │ │ │ └── nearby │ │ │ │ └── apps │ │ │ │ └── walkietalkie │ │ │ │ ├── Constants.java │ │ │ │ └── AudioBuffer.java │ │ ├── automatic │ │ │ └── res │ │ │ │ ├── values │ │ │ │ ├── colors.xml │ │ │ │ └── strings.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ │ └── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ └── manual │ │ │ └── res │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ └── values │ │ │ ├── colors.xml │ │ │ └── strings.xml │ └── build.gradle ├── settings.gradle ├── .gitignore ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── build.gradle └── gradle.properties ├── NearbyMessagesBackgroundBeacons ├── app │ ├── .gitignore │ ├── src │ │ └── main │ │ │ └── res │ │ │ ├── drawable-hdpi │ │ │ ├── ic_cancel.png │ │ │ └── ic_nearby.png │ │ │ ├── drawable-mdpi │ │ │ ├── ic_cancel.png │ │ │ └── ic_nearby.png │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── drawable-xhdpi │ │ │ ├── ic_cancel.png │ │ │ └── ic_nearby.png │ │ │ ├── drawable-xxhdpi │ │ │ ├── ic_cancel.png │ │ │ └── ic_nearby.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── drawable-xxxhdpi │ │ │ ├── ic_cancel.png │ │ │ └── ic_nearby.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── menu │ │ │ └── menu_main.xml │ │ │ ├── values │ │ │ ├── colors.xml │ │ │ └── dimens.xml │ │ │ ├── values-v21 │ │ │ └── styles.xml │ │ │ └── values-w820dp │ │ │ └── dimens.xml │ ├── proguard-rules.pro │ └── build.gradle ├── settings.gradle ├── .gitignore ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── build.gradle ├── gradle.properties └── .google │ └── packaging.yaml ├── NetworkConnect ├── settings.gradle ├── build.gradle ├── screenshots │ ├── main.png │ └── icon-web.png ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── Application │ └── src │ │ └── main │ │ └── res │ │ ├── drawable-hdpi │ │ ├── tile.9.png │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ └── ic_launcher.png │ │ ├── drawable-xhdpi │ │ └── ic_launcher.png │ │ ├── drawable-xxhdpi │ │ └── ic_launcher.png │ │ ├── xml │ │ └── network_security_config.xml │ │ ├── values-v21 │ │ ├── base-colors.xml │ │ └── base-template-styles.xml │ │ ├── values-v11 │ │ └── template-styles.xml │ │ ├── values-sw600dp │ │ ├── template-dimens.xml │ │ └── template-styles.xml │ │ ├── menu │ │ └── main.xml │ │ └── values │ │ ├── strings.xml │ │ ├── base-strings.xml │ │ └── template-dimens.xml ├── .google │ └── packaging.yaml └── gradle.properties ├── NearbyConnectionsRockPaperScissors ├── app │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── colors.xml │ │ │ │ ├── styles.xml │ │ │ │ └── strings.xml │ │ │ ├── color │ │ │ │ └── toggle_tint.xml │ │ │ └── drawable │ │ │ │ ├── rock.xml │ │ │ │ ├── paper.xml │ │ │ │ └── scissors.xml │ │ │ └── AndroidManifest.xml │ ├── build.gradle │ └── proguard-rules.pro ├── settings.gradle ├── .gitignore ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── build.gradle └── gradle.properties ├── BluetoothAdvertisements ├── settings.gradle ├── build.gradle ├── screenshots │ ├── 1-main.png │ └── icon-web.png ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── Application │ └── src │ │ └── main │ │ └── res │ │ ├── drawable-hdpi │ │ ├── tile.9.png │ │ ├── ic_launcher.png │ │ └── ic_action_refresh.png │ │ ├── drawable-mdpi │ │ ├── ic_launcher.png │ │ └── ic_action_refresh.png │ │ ├── drawable-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_action_refresh.png │ │ ├── drawable-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_action_refresh.png │ │ ├── menu-v21 │ │ └── scanner_menu.xml │ │ ├── values-v11 │ │ └── template-styles.xml │ │ ├── values-sw600dp │ │ ├── template-dimens.xml │ │ └── template-styles.xml │ │ ├── values-v21 │ │ ├── base-colors.xml │ │ └── base-template-styles.xml │ │ └── values │ │ ├── base-strings.xml │ │ └── template-dimens.xml ├── .google │ └── packaging.yaml └── gradle.properties ├── NearbyConnectionsCpp ├── settings.gradle ├── app │ ├── src │ │ └── main │ │ │ ├── cpp │ │ │ └── native-lib.cpp │ │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ └── values │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ │ └── java │ │ │ └── com │ │ │ └── sample │ │ │ └── helper │ │ │ └── JUITextView.java │ └── proguard-rules.pro ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── .gitignore └── .google │ └── packaging.yaml ├── BluetoothChat ├── settings.gradle ├── screenshots │ ├── 3-chat.png │ ├── 1-launch.png │ ├── icon-web.png │ └── 2-devices.png ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── Application │ ├── src │ │ └── main │ │ │ ├── res │ │ │ ├── drawable-hdpi │ │ │ │ ├── tile.9.png │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_action_device_access_bluetooth_searching.png │ │ │ ├── drawable-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_action_device_access_bluetooth_searching.png │ │ │ ├── drawable-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_action_device_access_bluetooth_searching.png │ │ │ ├── drawable-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_action_device_access_bluetooth_searching.png │ │ │ ├── values-v21 │ │ │ │ ├── base-colors.xml │ │ │ │ └── base-template-styles.xml │ │ │ ├── values │ │ │ │ ├── fragmentview_strings.xml │ │ │ │ └── template-dimens.xml │ │ │ ├── values-v11 │ │ │ │ └── template-styles.xml │ │ │ ├── values-sw600dp │ │ │ │ ├── template-dimens.xml │ │ │ │ └── template-styles.xml │ │ │ ├── layout │ │ │ │ ├── message.xml │ │ │ │ └── device_name.xml │ │ │ └── menu │ │ │ │ ├── main.xml │ │ │ │ └── bluetooth_chat.xml │ │ │ └── java │ │ │ └── com │ │ │ └── example │ │ │ └── android │ │ │ └── bluetoothchat │ │ │ └── Constants.java │ └── build.gradle ├── .google │ └── packaging.yaml ├── gradle.properties └── build.gradle ├── WifiRttScan ├── screenshots │ ├── main1.png │ ├── main2.png │ └── main3.png ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── Application │ └── src │ │ └── main │ │ └── res │ │ ├── drawable-hdpi │ │ ├── tile.9.png │ │ └── ic_wifi.png │ │ ├── drawable-mdpi │ │ └── ic_wifi.png │ │ ├── drawable-xhdpi │ │ └── ic_wifi.png │ │ ├── drawable-xxhdpi │ │ └── ic_wifi.png │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── values-v21 │ │ ├── base-colors.xml │ │ └── base-template-styles.xml │ │ ├── values-v11 │ │ └── template-styles.xml │ │ ├── values-sw600dp │ │ ├── template-dimens.xml │ │ └── template-styles.xml │ │ ├── values │ │ ├── colors.xml │ │ ├── base-strings.xml │ │ └── template-dimens.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ └── drawable │ │ ├── ic_round_network_wifi_24px.xml │ │ └── ic_round_network_wifi_white_24px.xml ├── settings.gradle ├── build.gradle ├── .google │ └── packaging.yaml └── gradle.properties ├── .gitignore ├── README.md └── .github └── workflows └── copy-branch.yml /BluetoothLeChat/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build -------------------------------------------------------------------------------- /CronetKotlin/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /CronetKotlin/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /NearbyMessagesDevices/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /BeamLargeFiles/settings.gradle: -------------------------------------------------------------------------------- 1 | include 'Application' 2 | -------------------------------------------------------------------------------- /BluetoothLeGatt/settings.gradle: -------------------------------------------------------------------------------- 1 | include 'Application' 2 | -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /NearbyMessagesDevices/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /NetworkConnect/settings.gradle: -------------------------------------------------------------------------------- 1 | include 'Application' 2 | -------------------------------------------------------------------------------- /NearbyConnectionsRockPaperScissors/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /BluetoothAdvertisements/settings.gradle: -------------------------------------------------------------------------------- 1 | include 'Application' 2 | -------------------------------------------------------------------------------- /NearbyConnectionsCpp/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':gpg-sdk' 2 | -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /BluetoothChat/settings.gradle: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | include 'Application' 5 | -------------------------------------------------------------------------------- /NearbyConnectionsRockPaperScissors/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /BeamLargeFiles/build.gradle: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /BluetoothLeChat/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | rootProject.name = "BluetoothLeChat" -------------------------------------------------------------------------------- /NetworkConnect/build.gradle: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /BluetoothLeGatt/build.gradle: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /BluetoothAdvertisements/build.gradle: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /NearbyConnectionsCpp/app/src/main/cpp/native-lib.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | -------------------------------------------------------------------------------- /NearbyMessagesDevices/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/* 5 | .DS_Store 6 | /build 7 | /captures 8 | app/libs/ 9 | -------------------------------------------------------------------------------- /WifiRttScan/screenshots/main1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/WifiRttScan/screenshots/main1.png -------------------------------------------------------------------------------- /WifiRttScan/screenshots/main2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/WifiRttScan/screenshots/main2.png -------------------------------------------------------------------------------- /WifiRttScan/screenshots/main3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/WifiRttScan/screenshots/main3.png -------------------------------------------------------------------------------- /BluetoothChat/screenshots/3-chat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothChat/screenshots/3-chat.png -------------------------------------------------------------------------------- /NetworkConnect/screenshots/main.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NetworkConnect/screenshots/main.png -------------------------------------------------------------------------------- /BluetoothChat/screenshots/1-launch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothChat/screenshots/1-launch.png -------------------------------------------------------------------------------- /BluetoothChat/screenshots/icon-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothChat/screenshots/icon-web.png -------------------------------------------------------------------------------- /BluetoothLeChat/screenshots/3-chat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothLeChat/screenshots/3-chat.png -------------------------------------------------------------------------------- /BluetoothLeGatt/screenshots/1-main.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothLeGatt/screenshots/1-main.png -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/* 5 | .DS_Store 6 | /build 7 | /captures 8 | app/libs/ 9 | -------------------------------------------------------------------------------- /BluetoothChat/screenshots/2-devices.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothChat/screenshots/2-devices.png -------------------------------------------------------------------------------- /BluetoothLeChat/screenshots/1-launch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothLeChat/screenshots/1-launch.png -------------------------------------------------------------------------------- /BluetoothLeGatt/screenshots/2-detail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothLeGatt/screenshots/2-detail.png -------------------------------------------------------------------------------- /BluetoothLeGatt/screenshots/icon-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothLeGatt/screenshots/icon-web.png -------------------------------------------------------------------------------- /NetworkConnect/screenshots/icon-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NetworkConnect/screenshots/icon-web.png -------------------------------------------------------------------------------- /BluetoothAdvertisements/screenshots/1-main.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothAdvertisements/screenshots/1-main.png -------------------------------------------------------------------------------- /BluetoothLeChat/screenshots/2-pair-prompt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothLeChat/screenshots/2-pair-prompt.png -------------------------------------------------------------------------------- /CronetKotlin/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/CronetKotlin/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /WifiRttScan/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/WifiRttScan/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /BeamLargeFiles/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BeamLargeFiles/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /BluetoothAdvertisements/screenshots/icon-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothAdvertisements/screenshots/icon-web.png -------------------------------------------------------------------------------- /BluetoothChat/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothChat/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /NetworkConnect/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NetworkConnect/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /BluetoothLeChat/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothLeChat/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /BluetoothLeGatt/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothLeGatt/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /NearbyConnectionsCpp/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsCpp/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | local.properties 3 | .idea 4 | build/ 5 | .DS_Store 6 | *.iml 7 | *.apk 8 | *.aar 9 | *.zip 10 | google-services.json 11 | -------------------------------------------------------------------------------- /NearbyMessagesDevices/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyMessagesDevices/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /BluetoothAdvertisements/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothAdvertisements/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /CronetKotlin/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/CronetKotlin/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /CronetKotlin/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/CronetKotlin/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /CronetKotlin/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/CronetKotlin/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyConnectionsRockPaperScissors/.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | local.properties 3 | .idea 4 | build/ 5 | .DS_Store 6 | *.iml 7 | *.apk 8 | *.aar 9 | *.zip 10 | google-services.json 11 | -------------------------------------------------------------------------------- /BluetoothLeChat/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothLeChat/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /BluetoothLeChat/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothLeChat/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /BluetoothLeChat/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothLeChat/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /CronetKotlin/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/CronetKotlin/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /CronetKotlin/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/CronetKotlin/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/app/src/main/res/values/drawables.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #44000000 4 | -------------------------------------------------------------------------------- /WifiRttScan/Application/src/main/res/drawable-hdpi/tile.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/WifiRttScan/Application/src/main/res/drawable-hdpi/tile.9.png -------------------------------------------------------------------------------- /BeamLargeFiles/Application/src/main/assets/stargazer_droid.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BeamLargeFiles/Application/src/main/assets/stargazer_droid.jpg -------------------------------------------------------------------------------- /BluetoothChat/Application/src/main/res/drawable-hdpi/tile.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothChat/Application/src/main/res/drawable-hdpi/tile.9.png -------------------------------------------------------------------------------- /BluetoothLeChat/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothLeChat/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /BluetoothLeChat/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothLeChat/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /CronetKotlin/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/CronetKotlin/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /CronetKotlin/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/CronetKotlin/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/app/src/automatic/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #B0BEC5 4 | 5 | -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsWalkieTalkie/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /WifiRttScan/Application/src/main/res/drawable-hdpi/ic_wifi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/WifiRttScan/Application/src/main/res/drawable-hdpi/ic_wifi.png -------------------------------------------------------------------------------- /WifiRttScan/Application/src/main/res/drawable-mdpi/ic_wifi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/WifiRttScan/Application/src/main/res/drawable-mdpi/ic_wifi.png -------------------------------------------------------------------------------- /WifiRttScan/Application/src/main/res/drawable-xhdpi/ic_wifi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/WifiRttScan/Application/src/main/res/drawable-xhdpi/ic_wifi.png -------------------------------------------------------------------------------- /BeamLargeFiles/Application/src/main/res/drawable-hdpi/tile.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BeamLargeFiles/Application/src/main/res/drawable-hdpi/tile.9.png -------------------------------------------------------------------------------- /BluetoothLeChat/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothLeChat/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /BluetoothLeChat/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothLeChat/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /BluetoothLeGatt/Application/src/main/res/drawable-hdpi/tile.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothLeGatt/Application/src/main/res/drawable-hdpi/tile.9.png -------------------------------------------------------------------------------- /CronetKotlin/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/CronetKotlin/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /CronetKotlin/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/CronetKotlin/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /CronetKotlin/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/CronetKotlin/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /NearbyConnectionsCpp/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsCpp/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyConnectionsCpp/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsCpp/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyConnectionsCpp/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsCpp/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyMessagesBackgroundBeacons/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /NearbyMessagesDevices/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyMessagesDevices/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyMessagesDevices/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyMessagesDevices/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /NetworkConnect/Application/src/main/res/drawable-hdpi/tile.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NetworkConnect/Application/src/main/res/drawable-hdpi/tile.9.png -------------------------------------------------------------------------------- /WifiRttScan/Application/src/main/res/drawable-xxhdpi/ic_wifi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/WifiRttScan/Application/src/main/res/drawable-xxhdpi/ic_wifi.png -------------------------------------------------------------------------------- /WifiRttScan/Application/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/WifiRttScan/Application/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /WifiRttScan/Application/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/WifiRttScan/Application/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /WifiRttScan/Application/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/WifiRttScan/Application/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /WifiRttScan/Application/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/WifiRttScan/Application/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /BluetoothChat/Application/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothChat/Application/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /BluetoothChat/Application/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothChat/Application/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /BluetoothLeChat/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothLeChat/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /BluetoothLeChat/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothLeChat/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /NearbyConnectionsCpp/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsCpp/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyConnectionsCpp/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsCpp/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyConnectionsRockPaperScissors/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsRockPaperScissors/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /NearbyMessagesDevices/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyMessagesDevices/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyMessagesDevices/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyMessagesDevices/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /WifiRttScan/Application/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/WifiRttScan/Application/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /BeamLargeFiles/Application/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BeamLargeFiles/Application/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /BeamLargeFiles/Application/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BeamLargeFiles/Application/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /BeamLargeFiles/Application/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BeamLargeFiles/Application/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /BeamLargeFiles/Application/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BeamLargeFiles/Application/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /BluetoothChat/Application/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothChat/Application/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /BluetoothChat/Application/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothChat/Application/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /BluetoothLeChat/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothLeChat/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /BluetoothLeGatt/Application/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothLeGatt/Application/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /BluetoothLeGatt/Application/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothLeGatt/Application/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /BluetoothLeGatt/Application/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothLeGatt/Application/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyConnectionsCpp/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsCpp/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /NearbyConnectionsCpp/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsCpp/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /NearbyMessagesDevices/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyMessagesDevices/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /NetworkConnect/Application/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NetworkConnect/Application/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /NetworkConnect/Application/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NetworkConnect/Application/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /NetworkConnect/Application/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NetworkConnect/Application/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /NetworkConnect/Application/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NetworkConnect/Application/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /WifiRttScan/Application/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/WifiRttScan/Application/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /WifiRttScan/Application/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/WifiRttScan/Application/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /WifiRttScan/Application/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/WifiRttScan/Application/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /BluetoothAdvertisements/Application/src/main/res/drawable-hdpi/tile.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothAdvertisements/Application/src/main/res/drawable-hdpi/tile.9.png -------------------------------------------------------------------------------- /BluetoothLeGatt/Application/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothLeGatt/Application/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyConnectionsCpp/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsCpp/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /NearbyConnectionsCpp/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsCpp/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /WifiRttScan/Application/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/WifiRttScan/Application/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /WifiRttScan/Application/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/WifiRttScan/Application/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /NearbyConnectionsCpp/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsCpp/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/app/src/manual/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsWalkieTalkie/app/src/manual/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/app/src/manual/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsWalkieTalkie/app/src/manual/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/app/src/main/res/drawable-hdpi/ic_cancel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyMessagesBackgroundBeacons/app/src/main/res/drawable-hdpi/ic_cancel.png -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/app/src/main/res/drawable-hdpi/ic_nearby.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyMessagesBackgroundBeacons/app/src/main/res/drawable-hdpi/ic_nearby.png -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/app/src/main/res/drawable-mdpi/ic_cancel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyMessagesBackgroundBeacons/app/src/main/res/drawable-mdpi/ic_cancel.png -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/app/src/main/res/drawable-mdpi/ic_nearby.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyMessagesBackgroundBeacons/app/src/main/res/drawable-mdpi/ic_nearby.png -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyMessagesBackgroundBeacons/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyMessagesBackgroundBeacons/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /BluetoothAdvertisements/Application/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothAdvertisements/Application/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /BluetoothAdvertisements/Application/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothAdvertisements/Application/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/app/src/manual/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsWalkieTalkie/app/src/manual/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/app/src/manual/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsWalkieTalkie/app/src/manual/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/app/src/main/res/drawable-xhdpi/ic_cancel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyMessagesBackgroundBeacons/app/src/main/res/drawable-xhdpi/ic_cancel.png -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/app/src/main/res/drawable-xhdpi/ic_nearby.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyMessagesBackgroundBeacons/app/src/main/res/drawable-xhdpi/ic_nearby.png -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/app/src/main/res/drawable-xxhdpi/ic_cancel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyMessagesBackgroundBeacons/app/src/main/res/drawable-xxhdpi/ic_cancel.png -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/app/src/main/res/drawable-xxhdpi/ic_nearby.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyMessagesBackgroundBeacons/app/src/main/res/drawable-xxhdpi/ic_nearby.png -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyMessagesBackgroundBeacons/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyMessagesBackgroundBeacons/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /BluetoothAdvertisements/Application/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothAdvertisements/Application/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /BluetoothAdvertisements/Application/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothAdvertisements/Application/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyConnectionsRockPaperScissors/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsRockPaperScissors/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyConnectionsRockPaperScissors/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsRockPaperScissors/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyConnectionsRockPaperScissors/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsRockPaperScissors/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyConnectionsRockPaperScissors/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsRockPaperScissors/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/app/src/automatic/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsWalkieTalkie/app/src/automatic/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/app/src/automatic/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsWalkieTalkie/app/src/automatic/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/app/src/automatic/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsWalkieTalkie/app/src/automatic/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/app/src/automatic/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsWalkieTalkie/app/src/automatic/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/app/src/manual/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsWalkieTalkie/app/src/manual/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/app/src/main/res/drawable-xxxhdpi/ic_cancel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyMessagesBackgroundBeacons/app/src/main/res/drawable-xxxhdpi/ic_cancel.png -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/app/src/main/res/drawable-xxxhdpi/ic_nearby.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyMessagesBackgroundBeacons/app/src/main/res/drawable-xxxhdpi/ic_nearby.png -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyMessagesBackgroundBeacons/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyConnectionsRockPaperScissors/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsRockPaperScissors/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/app/src/automatic/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/NearbyConnectionsWalkieTalkie/app/src/automatic/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /BluetoothAdvertisements/Application/src/main/res/drawable-hdpi/ic_action_refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothAdvertisements/Application/src/main/res/drawable-hdpi/ic_action_refresh.png -------------------------------------------------------------------------------- /BluetoothAdvertisements/Application/src/main/res/drawable-mdpi/ic_action_refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothAdvertisements/Application/src/main/res/drawable-mdpi/ic_action_refresh.png -------------------------------------------------------------------------------- /BluetoothAdvertisements/Application/src/main/res/drawable-xhdpi/ic_action_refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothAdvertisements/Application/src/main/res/drawable-xhdpi/ic_action_refresh.png -------------------------------------------------------------------------------- /BluetoothAdvertisements/Application/src/main/res/drawable-xxhdpi/ic_action_refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothAdvertisements/Application/src/main/res/drawable-xxhdpi/ic_action_refresh.png -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/app/src/manual/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #2196F3 4 | #EF5350 5 | 6 | -------------------------------------------------------------------------------- /BeamLargeFiles/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /BluetoothChat/Application/src/main/res/drawable-hdpi/ic_action_device_access_bluetooth_searching.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothChat/Application/src/main/res/drawable-hdpi/ic_action_device_access_bluetooth_searching.png -------------------------------------------------------------------------------- /BluetoothChat/Application/src/main/res/drawable-mdpi/ic_action_device_access_bluetooth_searching.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothChat/Application/src/main/res/drawable-mdpi/ic_action_device_access_bluetooth_searching.png -------------------------------------------------------------------------------- /BluetoothChat/Application/src/main/res/drawable-xhdpi/ic_action_device_access_bluetooth_searching.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothChat/Application/src/main/res/drawable-xhdpi/ic_action_device_access_bluetooth_searching.png -------------------------------------------------------------------------------- /BluetoothLeGatt/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /NetworkConnect/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /BluetoothChat/Application/src/main/res/drawable-xxhdpi/ic_action_device_access_bluetooth_searching.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingarajsankaravelu/connectivity-samples/main/BluetoothChat/Application/src/main/res/drawable-xxhdpi/ic_action_device_access_bluetooth_searching.png -------------------------------------------------------------------------------- /BluetoothAdvertisements/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /NearbyMessagesDevices/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /CronetKotlin/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/caches 5 | /.idea/libraries 6 | /.idea/modules.xml 7 | /.idea/workspace.xml 8 | /.idea/navEditor.xml 9 | /.idea/assetWizardSettings.xml 10 | .DS_Store 11 | /build 12 | /captures 13 | .externalNativeBuild 14 | -------------------------------------------------------------------------------- /NearbyConnectionsCpp/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | bin/ 3 | build.xml 4 | gen/ 5 | libs/ 6 | local.properties 7 | obj/ 8 | .settings/ 9 | .DS_Store 10 | 11 | .gradle/ 12 | build/ 13 | .externalNativeBuild/ 14 | 15 | *.iml 16 | 17 | gpg-sdk/gpg-cpp-sdk/ 18 | gpg-sdk/gpg_cpp_sdk.zip 19 | -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /NearbyConnectionsRockPaperScissors/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3f51b5 4 | #002984 5 | 6 | #42000000 7 | 8 | -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/app/src/automatic/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | WalkieTalkie Automatic 4 | 5 | Looking for a device to connect to 6 | 7 | -------------------------------------------------------------------------------- /BluetoothLeChat/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/caches 5 | /.idea/libraries 6 | /.idea/modules.xml 7 | /.idea/workspace.xml 8 | /.idea/navEditor.xml 9 | /.idea/assetWizardSettings.xml 10 | .DS_Store 11 | /build 12 | /captures 13 | .externalNativeBuild 14 | .cxx 15 | -------------------------------------------------------------------------------- /WifiRttScan/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jul 27 17:47:47 PDT 2018 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip 7 | -------------------------------------------------------------------------------- /BluetoothChat/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Thu Sep 19 12:54:56 JST 2019 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip 7 | -------------------------------------------------------------------------------- /BluetoothLeChat/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Thu Sep 03 12:48:38 EDT 2020 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip 7 | -------------------------------------------------------------------------------- /NearbyMessagesDevices/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | NearbyDevices 3 | 4 | Discover nearby devices 5 | Share device information 6 | 7 | -------------------------------------------------------------------------------- /NearbyMessagesDevices/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Sep 18 15:14:30 PDT 2019 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip -------------------------------------------------------------------------------- /NearbyConnectionsCpp/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue Nov 14 14:20:53 PST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip 7 | -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Sep 18 15:24:30 PDT 2019 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip 7 | -------------------------------------------------------------------------------- /NearbyConnectionsRockPaperScissors/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue Sep 25 13:30:15 CEST 2018 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-all.zip 7 | -------------------------------------------------------------------------------- /NearbyConnectionsRockPaperScissors/app/src/main/res/color/toggle_tint.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/app/src/manual/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | WalkieTalkie Manual 4 | 5 | Advertising 6 | Have one person shake their device. Everyone else, stand still. 7 | 8 | -------------------------------------------------------------------------------- /BluetoothAdvertisements/Application/src/main/res/menu-v21/scanner_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/app/src/main/java/com/google/location/nearby/apps/walkietalkie/Constants.java: -------------------------------------------------------------------------------- 1 | package com.google.location.nearby.apps.walkietalkie; 2 | 3 | /** A set of constants used within the app. */ 4 | public class Constants { 5 | /** A tag for logging. Use 'adb logcat -s WalkieTalkie' to follow the logs. */ 6 | public static final String TAG = "WalkieTalkie"; 7 | } 8 | -------------------------------------------------------------------------------- /NearbyMessagesDevices/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | 16sp 7 | 48dp 8 | 9 | -------------------------------------------------------------------------------- /NearbyMessagesDevices/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /BeamLargeFiles/.google/packaging.yaml: -------------------------------------------------------------------------------- 1 | 2 | # GOOGLE SAMPLE PACKAGING DATA 3 | # 4 | # This file is used by Google as part of our samples packaging process. 5 | # End users may safely ignore this file. It has no relevance to other systems. 6 | --- 7 | status: PUBLISHED 8 | technologies: [Android] 9 | categories: [Connectivity] 10 | languages: [Java] 11 | solutions: [Mobile] 12 | github: android/connectivity 13 | license: apache2 14 | -------------------------------------------------------------------------------- /NetworkConnect/Application/src/main/res/xml/network_security_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /NearbyConnectionsRockPaperScissors/app/src/main/res/drawable/rock.xml: -------------------------------------------------------------------------------- 1 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Cannot start without required permissions 4 | 5 | Connected to %s 6 | Disconnected from %s 7 | 8 | Please wait 9 | Connected\nHold any of the volume keys to talk 10 | 11 | -------------------------------------------------------------------------------- /NearbyConnectionsCpp/.google/packaging.yaml: -------------------------------------------------------------------------------- 1 | 2 | # GOOGLE SAMPLE PACKAGING DATA 3 | # 4 | # This file is used by Google as part of our samples packaging process. 5 | # End users may safely ignore this file. It has no relevance to other systems. 6 | --- 7 | status: PUBLISHED 8 | technologies: [Android] 9 | categories: [Connectivity] 10 | languages: [Java] 11 | solutions: [Mobile] 12 | github: android/connectivity 13 | level: ADVANCED 14 | apiRefs: 15 | - google:com.google.android.gms.nearby.Nearby 16 | license: apache2 17 | -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 10 | 11 | -------------------------------------------------------------------------------- /NearbyConnectionsRockPaperScissors/app/src/main/res/drawable/paper.xml: -------------------------------------------------------------------------------- 1 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # Mac files 6 | .DS_Store 7 | 8 | # files for the dex VM 9 | *.dex 10 | 11 | # Java class files 12 | *.class 13 | 14 | # generated files 15 | bin/ 16 | gen/ 17 | 18 | # Ignore gradle files 19 | .gradle/ 20 | build/ 21 | 22 | # Local configuration file (sdk path, etc) 23 | local.properties 24 | 25 | # Proguard folder generated by Eclipse 26 | proguard/ 27 | proguard-project.txt 28 | 29 | # Eclipse files 30 | .project 31 | .classpath 32 | .settings/ 33 | 34 | # Android Studio/IDEA 35 | *.iml 36 | .idea 37 | -------------------------------------------------------------------------------- /BluetoothLeGatt/.google/packaging.yaml: -------------------------------------------------------------------------------- 1 | 2 | # GOOGLE SAMPLE PACKAGING DATA 3 | # 4 | # This file is used by Google as part of our samples packaging process. 5 | # End users may safely ignore this file. It has no relevance to other systems. 6 | --- 7 | status: PUBLISHED 8 | technologies: [Android] 9 | categories: [Connectivity] 10 | languages: [Java] 11 | solutions: [Mobile] 12 | github: android/connectivity 13 | level: ADVANCED 14 | icon: screenshots/icon-web.png 15 | apiRefs: 16 | - android:android.app.Service 17 | - android:android.bluetooth.BluetoothGattService 18 | license: apache2 19 | -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #000000 4 | #000000 5 | #66BB6A 6 | 7 | #FFFFFF 8 | 9 | #78909C 10 | #0097A7 11 | 12 | #FFFFFF 13 | #EEEEEE 14 | #E57373 15 | #F44336 16 | 17 | -------------------------------------------------------------------------------- /BluetoothAdvertisements/.google/packaging.yaml: -------------------------------------------------------------------------------- 1 | 2 | # GOOGLE SAMPLE PACKAGING DATA 3 | # 4 | # This file is used by Google as part of our samples packaging process. 5 | # End users may safely ignore this file. It has no relevance to other systems. 6 | --- 7 | status: PUBLISHED 8 | technologies: [Android] 9 | categories: [Connectivity] 10 | languages: [Java] 11 | solutions: [Mobile] 12 | github: android/connectivity 13 | level: ADVANCED 14 | icon: screenshots/icon-web.png 15 | apiRefs: 16 | - android:android.bluetooth.le.BluetoothLeAdvertiser 17 | - android:android.bluetooth.le.BluetoothLeScanner 18 | license: apache2 19 | -------------------------------------------------------------------------------- /NearbyMessagesDevices/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | google() 6 | jcenter() 7 | } 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.5.0' 10 | 11 | // NOTE: Do not place your application dependencies here; they belong 12 | // in the individual module build.gradle files 13 | } 14 | } 15 | 16 | allprojects { 17 | repositories { 18 | google() 19 | jcenter() 20 | } 21 | } 22 | 23 | task clean(type: Delete) { 24 | delete rootProject.buildDir 25 | } 26 | -------------------------------------------------------------------------------- /NetworkConnect/.google/packaging.yaml: -------------------------------------------------------------------------------- 1 | 2 | # GOOGLE SAMPLE PACKAGING DATA 3 | # 4 | # This file is used by Google as part of our samples packaging process. 5 | # End users may safely ignore this file. It has no relevance to other systems. 6 | --- 7 | status: PUBLISHED 8 | technologies: [Android] 9 | categories: [Connectivity] 10 | languages: [Java] 11 | solutions: [Mobile] 12 | github: android/connectivity 13 | level: INTERMEDIATE 14 | icon: screenshots/icon-web.png 15 | apiRefs: 16 | - android:android.os.AsyncTask 17 | - android:android.net.ConnectivityManager 18 | - android:android.net.NetworkInfo 19 | license: apache2 20 | -------------------------------------------------------------------------------- /CronetKotlin/.google/packaging.yaml: -------------------------------------------------------------------------------- 1 | # GOOGLE SAMPLE PACKAGING DATA 2 | # 3 | # This file is used by Google as part of our samples packaging process. 4 | # End users may safely ignore this file. It has no relevance to other systems. 5 | --- 6 | status: PUBLISHED 7 | technologies: [Android] 8 | categories: [Connectivity] 9 | languages: [Java] 10 | solutions: [Mobile] 11 | github: android/connectivity 12 | level: ADVANCED 13 | apiRefs: 14 | - android:org.chromium.net.CronetEngine 15 | - android:org.chromium.net.CronetException 16 | - android:org.chromium.net.UrlRequest 17 | - android:org.chromium.net.UrlResponseInfo 18 | license: apache2 19 | -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | google() 6 | jcenter() 7 | } 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.5.0' 10 | 11 | // NOTE: Do not place your application dependencies here; they belong 12 | // in the individual module build.gradle files 13 | } 14 | } 15 | 16 | allprojects { 17 | repositories { 18 | google() 19 | jcenter() 20 | } 21 | } 22 | 23 | task clean(type: Delete) { 24 | delete rootProject.buildDir 25 | } 26 | -------------------------------------------------------------------------------- /WifiRttScan/settings.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2018 Google Inc. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | include 'Application' 17 | -------------------------------------------------------------------------------- /BluetoothChat/.google/packaging.yaml: -------------------------------------------------------------------------------- 1 | 2 | # GOOGLE SAMPLE PACKAGING DATA 3 | # 4 | # This file is used by Google as part of our samples packaging process. 5 | # End users may safely ignore this file. It has no relevance to other systems. 6 | --- 7 | status: PUBLISHED 8 | technologies: [Android] 9 | categories: [Connectivity] 10 | languages: [Java] 11 | solutions: [Mobile] 12 | github: android/connectivity 13 | level: ADVANCED 14 | icon: screenshots/icon-web.png 15 | apiRefs: 16 | - android:android.bluetooth.BluetoothAdapter 17 | - android:android.bluetooth.BluetoothDevice 18 | - android:android.bluetooth.BluetoothServerSocket 19 | - android:android.bluetooth.BluetoothSocket 20 | license: apache2 21 | -------------------------------------------------------------------------------- /NearbyConnectionsRockPaperScissors/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 28 5 | defaultConfig { 6 | applicationId "com.google.location.nearby.apps.rockpaperscissors" 7 | minSdkVersion 23 8 | targetSdkVersion 28 9 | versionCode 1 10 | versionName "1.0" 11 | } 12 | buildTypes { 13 | release { 14 | minifyEnabled false 15 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 16 | } 17 | } 18 | } 19 | 20 | dependencies { 21 | implementation 'androidx.appcompat:appcompat:1.0.0' 22 | implementation 'com.google.android.gms:play-services-nearby:15.0.1' 23 | } 24 | -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | maven { 7 | url 'https://maven.google.com/' 8 | name 'Google' 9 | } 10 | } 11 | dependencies { 12 | classpath 'com.android.tools.build:gradle:3.3.1' 13 | 14 | // NOTE: Do not place your application dependencies here; they belong 15 | // in the individual module build.gradle files 16 | } 17 | } 18 | 19 | allprojects { 20 | repositories { 21 | maven { 22 | url 'https://maven.google.com' 23 | } 24 | jcenter() 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /WifiRttScan/build.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2018 Google Inc. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /NearbyConnectionsRockPaperScissors/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | google() 7 | } 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.3.0-alpha11' 10 | 11 | // NOTE: Do not place your application dependencies here; they belong 12 | // in the individual module build.gradle files 13 | } 14 | } 15 | 16 | allprojects { 17 | repositories { 18 | jcenter() 19 | maven { 20 | url "https://maven.google.com" 21 | } 22 | google() 23 | } 24 | } 25 | 26 | task clean(type: Delete) { 27 | delete rootProject.buildDir 28 | } 29 | -------------------------------------------------------------------------------- /NearbyMessagesDevices/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/shailentuli/Library/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/shailentuli/Library/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /BeamLargeFiles/Application/src/main/res/menu/main.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /WifiRttScan/Application/src/main/res/values-v21/base-colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /BeamLargeFiles/Application/src/main/res/values-v21/base-colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /BluetoothChat/Application/src/main/res/values-v21/base-colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /BluetoothLeGatt/Application/src/main/res/values-v21/base-colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /CronetKotlin/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | CronetSample 19 | 20 | -------------------------------------------------------------------------------- /NetworkConnect/Application/src/main/res/values-v21/base-colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /WifiRttScan/.google/packaging.yaml: -------------------------------------------------------------------------------- 1 | 2 | # GOOGLE SAMPLE PACKAGING DATA 3 | # 4 | # This file is used by Google as part of our samples packaging process. 5 | # End users may safely ignore this file. It has no relevance to other systems. 6 | --- 7 | status: PUBLISHED 8 | technologies: [Android] 9 | categories: [Connectivity] 10 | languages: [Java] 11 | solutions: [Mobile] 12 | github: android/connectivity 13 | level: ADVANCED 14 | icon: screenshots/big_icon.png 15 | apiRefs: 16 | - android:android.net.wifi.ScanResult 17 | - android:android.net.wifi.WifiManager 18 | - android:android.net.wifi.rtt.RangingRequest 19 | - android:android.net.wifi.rtt.RangingResult 20 | - android:android.net.wifi.rtt.RangingResultCallback 21 | - android:android.net.wifi.rtt.WifiRttManager 22 | license: apache2 23 | -------------------------------------------------------------------------------- /BluetoothLeChat/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile -------------------------------------------------------------------------------- /BluetoothChat/Application/src/main/res/values/fragmentview_strings.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | Show Log 18 | Hide Log 19 | 20 | -------------------------------------------------------------------------------- /BeamLargeFiles/Application/src/main/res/values-v11/template-styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /CronetKotlin/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | # Copyright 2019 Google LLC 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # https://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | # 15 | #Mon May 20 15:53:42 PDT 2019 16 | distributionBase=GRADLE_USER_HOME 17 | distributionPath=wrapper/dists 18 | zipStoreBase=GRADLE_USER_HOME 19 | zipStorePath=wrapper/dists 20 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip 21 | -------------------------------------------------------------------------------- /WifiRttScan/Application/src/main/res/values-v21/base-template-styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | 21 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /BeamLargeFiles/Application/src/main/res/values-v21/base-template-styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | 21 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /BluetoothLeGatt/Application/src/main/res/values-v21/base-template-styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | 21 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /NearbyConnectionsRockPaperScissors/app/src/main/res/drawable/scissors.xml: -------------------------------------------------------------------------------- 1 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /NetworkConnect/Application/src/main/res/values-v21/base-template-styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | 21 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /CronetKotlin/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | #008577 20 | #00574B 21 | #D81B60 22 | 23 | -------------------------------------------------------------------------------- /NearbyConnectionsCpp/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | #3F51B5 19 | #303F9F 20 | #FF4081 21 | 22 | -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 14 | 15 | #3F51B5 16 | #303F9F 17 | #FF4081 18 | 19 | -------------------------------------------------------------------------------- /NearbyMessagesDevices/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /BeamLargeFiles/gradle.properties: -------------------------------------------------------------------------------- 1 | 2 | # Project-wide Gradle settings. 3 | 4 | # IDE (e.g. Android Studio) users: 5 | # Settings specified in this file will override any Gradle settings 6 | # configured through the IDE. 7 | 8 | # For more details on how to configure your build environment visit 9 | # http://www.gradle.org/docs/current/userguide/build_environment.html 10 | 11 | # Specifies the JVM arguments used for the daemon process. 12 | # The setting is particularly useful for tweaking memory settings. 13 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 14 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 15 | 16 | # When configured, Gradle will run in incubating parallel mode. 17 | # This option should only be used with decoupled projects. More details, visit 18 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 19 | # org.gradle.parallel=true 20 | 21 | -------------------------------------------------------------------------------- /BluetoothLeGatt/gradle.properties: -------------------------------------------------------------------------------- 1 | 2 | # Project-wide Gradle settings. 3 | 4 | # IDE (e.g. Android Studio) users: 5 | # Settings specified in this file will override any Gradle settings 6 | # configured through the IDE. 7 | 8 | # For more details on how to configure your build environment visit 9 | # http://www.gradle.org/docs/current/userguide/build_environment.html 10 | 11 | # Specifies the JVM arguments used for the daemon process. 12 | # The setting is particularly useful for tweaking memory settings. 13 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 14 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 15 | 16 | # When configured, Gradle will run in incubating parallel mode. 17 | # This option should only be used with decoupled projects. More details, visit 18 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 19 | # org.gradle.parallel=true 20 | 21 | -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /NetworkConnect/gradle.properties: -------------------------------------------------------------------------------- 1 | 2 | # Project-wide Gradle settings. 3 | 4 | # IDE (e.g. Android Studio) users: 5 | # Settings specified in this file will override any Gradle settings 6 | # configured through the IDE. 7 | 8 | # For more details on how to configure your build environment visit 9 | # http://www.gradle.org/docs/current/userguide/build_environment.html 10 | 11 | # Specifies the JVM arguments used for the daemon process. 12 | # The setting is particularly useful for tweaking memory settings. 13 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 14 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 15 | 16 | # When configured, Gradle will run in incubating parallel mode. 17 | # This option should only be used with decoupled projects. More details, visit 18 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 19 | # org.gradle.parallel=true 20 | 21 | -------------------------------------------------------------------------------- /BeamLargeFiles/Application/src/main/res/values-sw600dp/template-dimens.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | @dimen/margin_huge 22 | @dimen/margin_medium 23 | 24 | 25 | -------------------------------------------------------------------------------- /BluetoothAdvertisements/gradle.properties: -------------------------------------------------------------------------------- 1 | 2 | # Project-wide Gradle settings. 3 | 4 | # IDE (e.g. Android Studio) users: 5 | # Settings specified in this file will override any Gradle settings 6 | # configured through the IDE. 7 | 8 | # For more details on how to configure your build environment visit 9 | # http://www.gradle.org/docs/current/userguide/build_environment.html 10 | 11 | # Specifies the JVM arguments used for the daemon process. 12 | # The setting is particularly useful for tweaking memory settings. 13 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 14 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 15 | 16 | # When configured, Gradle will run in incubating parallel mode. 17 | # This option should only be used with decoupled projects. More details, visit 18 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 19 | # org.gradle.parallel=true 20 | 21 | -------------------------------------------------------------------------------- /BluetoothChat/Application/src/main/res/values-sw600dp/template-dimens.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | @dimen/margin_huge 22 | @dimen/margin_medium 23 | 24 | 25 | -------------------------------------------------------------------------------- /BluetoothLeGatt/Application/src/main/res/values-sw600dp/template-dimens.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | @dimen/margin_huge 22 | @dimen/margin_medium 23 | 24 | 25 | -------------------------------------------------------------------------------- /NearbyMessagesDevices/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 26 5 | buildToolsVersion "28.0.3" 6 | 7 | defaultConfig { 8 | applicationId "com.google.android.gms.nearby.messages.samples.nearbydevices" 9 | minSdkVersion 14 10 | targetSdkVersion 26 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled true 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | implementation fileTree(dir: 'libs', include: ['*.jar']) 24 | implementation 'com.android.support:appcompat-v7:26.1.0' 25 | implementation 'com.android.support:design:26.1.0' 26 | implementation 'com.google.code.gson:gson:2.4' 27 | implementation 'com.google.android.gms:play-services-nearby:9.0.0' 28 | } 29 | -------------------------------------------------------------------------------- /NetworkConnect/Application/src/main/res/values-sw600dp/template-dimens.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | @dimen/margin_huge 22 | @dimen/margin_medium 23 | 24 | 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Connectivity Samples Repository 2 | =============================== 3 | 4 | This repository contains a set of individual Android Studio projects to help you get started writing Connectivity apps in Android. 5 | 6 | If you find an issue or bug in one of the projects, feel free to file an issue on this repository with the following information: 7 | - The specific project that pertains to the issue (for example: the 'BluetoothLeGatt' project) 8 | - Steps to repro the issue, including the API version and Android device model 9 | 10 | Example of a good issue: 11 | In the BluetoothLeGatt sample, I am unable to see any BLE devices after the initial scan. I ran the sample on a Pixel 2 running API version 28. 12 | 13 | Examples of bad issues: 14 | 1. Bluetooth scanning doesn't work. 15 | 2. My app is crashing when I try to send a large file. 16 | 3. How can I support BLE in my app? 17 | 18 | Requests for samples related to Android connectivity are also welcome. 19 | -------------------------------------------------------------------------------- /WifiRttScan/Application/src/main/res/values-sw600dp/template-dimens.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | @dimen/margin_huge 22 | @dimen/margin_medium 23 | 24 | 25 | -------------------------------------------------------------------------------- /BluetoothAdvertisements/Application/src/main/res/values-sw600dp/template-dimens.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | @dimen/margin_huge 22 | @dimen/margin_medium 23 | 24 | 25 | -------------------------------------------------------------------------------- /NearbyConnectionsCpp/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | NearbyConnections Sample 18 | google-nearby-connection-native-demo 19 | Missing Permissions 20 | 21 | -------------------------------------------------------------------------------- /WifiRttScan/Application/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 14 | 15 | #3F51B5 16 | #303F9F 17 | #9fa8da 18 | #FF4081 19 | 20 | -------------------------------------------------------------------------------- /BluetoothAdvertisements/Application/src/main/res/values-v21/base-colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | #434AB3 21 | #34379D 22 | #FFFFFF 23 | 24 | 25 | -------------------------------------------------------------------------------- /NearbyMessagesDevices/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 11 | 12 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /WifiRttScan/Application/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /NearbyMessagesDevices/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 11 | 12 | 15 | 16 | 21 | 22 | -------------------------------------------------------------------------------- /WifiRttScan/Application/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /BluetoothChat/gradle.properties: -------------------------------------------------------------------------------- 1 | 2 | # Project-wide Gradle settings. 3 | 4 | # IDE (e.g. Android Studio) users: 5 | # Settings specified in this file will override any Gradle settings 6 | # configured through the IDE. 7 | 8 | # For more details on how to configure your build environment visit 9 | # http://www.gradle.org/docs/current/userguide/build_environment.html 10 | 11 | # Specifies the JVM arguments used for the daemon process. 12 | # The setting is particularly useful for tweaking memory settings. 13 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 14 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 15 | 16 | # When configured, Gradle will run in incubating parallel mode. 17 | # This option should only be used with decoupled projects. More details, visit 18 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 19 | # org.gradle.parallel=true 20 | 21 | android.enableJetifier=true 22 | android.useAndroidX=true -------------------------------------------------------------------------------- /CronetKotlin/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /BluetoothLeChat/app/src/main/java/com/example/bluetoothlechat/Extensions.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2020 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.example.bluetoothlechat 17 | 18 | import android.view.View 19 | 20 | fun View.visible() { 21 | this.visibility = View.VISIBLE 22 | } 23 | 24 | fun View.gone() { 25 | this.visibility = View.GONE 26 | } 27 | 28 | val T.exhaustive: T 29 | get() = this -------------------------------------------------------------------------------- /CronetKotlin/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /WifiRttScan/gradle.properties: -------------------------------------------------------------------------------- 1 | 2 | # Project-wide Gradle settings. 3 | 4 | # IDE (e.g. Android Studio) users: 5 | # Settings specified in this file will override any Gradle settings 6 | # configured through the IDE. 7 | 8 | # For more details on how to configure your build environment visit 9 | # http://www.gradle.org/docs/current/userguide/build_environment.html 10 | 11 | # Specifies the JVM arguments used for the daemon process. 12 | # The setting is particularly useful for tweaking memory settings. 13 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 14 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 15 | 16 | # When configured, Gradle will run in incubating parallel mode. 17 | # This option should only be used with decoupled projects. More details, visit 18 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 19 | # org.gradle.parallel=true 20 | 21 | android.useAndroidX=true 22 | android.enableJetifier=true 23 | -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 28 5 | defaultConfig { 6 | minSdkVersion 16 7 | targetSdkVersion 28 8 | versionCode 1 9 | versionName "1.0" 10 | multiDexEnabled true 11 | } 12 | 13 | flavorDimensions "mode" 14 | 15 | productFlavors { 16 | manual { 17 | dimension "mode" 18 | applicationId "com.google.location.nearby.apps.walkietalkie.manual" 19 | } 20 | automatic { 21 | dimension "mode" 22 | applicationId "com.google.location.nearby.apps.walkietalkie.automatic" 23 | } 24 | } 25 | } 26 | 27 | dependencies { 28 | implementation 'com.google.android.gms:play-services-nearby:16.0.0' 29 | 30 | implementation 'com.android.support:support-v4:28.0.0' 31 | implementation 'com.android.support:appcompat-v7:28.0.0' 32 | implementation 'com.android.support:multidex:1.0.3' 33 | } 34 | 35 | -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 26 5 | buildToolsVersion "28.0.3" 6 | 7 | defaultConfig { 8 | applicationId "com.google.android.gms.nearby.messages.samples.nearbybackgroundbeacons" 9 | minSdkVersion 14 10 | targetSdkVersion 26 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | implementation fileTree(dir: 'libs', include: ['*.jar']) 24 | testImplementation 'junit:junit:4.12' 25 | implementation 'com.android.support:appcompat-v7:26.1.0' 26 | implementation 'com.android.support:design:26.1.0' 27 | implementation 'com.google.code.gson:gson:2.4' 28 | implementation 'com.google.android.gms:play-services-nearby:9.0.0' 29 | } -------------------------------------------------------------------------------- /BluetoothChat/Application/src/main/res/layout/message.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 22 | -------------------------------------------------------------------------------- /BluetoothChat/Application/src/main/res/layout/device_name.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 22 | -------------------------------------------------------------------------------- /BluetoothLeChat/app/src/main/java/com/example/bluetoothlechat/chat/DeviceConnectionState.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2020 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.example.bluetoothlechat.chat 17 | 18 | import android.bluetooth.BluetoothDevice 19 | 20 | sealed class DeviceConnectionState { 21 | class Connected(val device: BluetoothDevice) : DeviceConnectionState() 22 | object Disconnected : DeviceConnectionState() 23 | } -------------------------------------------------------------------------------- /BluetoothLeChat/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /WifiRttScan/Application/src/main/res/values-sw600dp/template-styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /BeamLargeFiles/Application/src/main/res/values-sw600dp/template-styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /BluetoothChat/Application/src/main/res/menu/main.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 20 | 23 | 24 | -------------------------------------------------------------------------------- /BluetoothChat/Application/src/main/res/values-sw600dp/template-styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /BluetoothLeChat/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /BluetoothLeGatt/Application/src/main/res/values-sw600dp/template-styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /NetworkConnect/Application/src/main/res/values-sw600dp/template-styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /NearbyMessagesDevices/.google/packaging.yaml: -------------------------------------------------------------------------------- 1 | 2 | # GOOGLE SAMPLE PACKAGING DATA 3 | # 4 | # This file is used by Google as part of our samples packaging process. 5 | # End users may safely ignore this file. It has no relevance to other systems. 6 | --- 7 | status: PUBLISHED 8 | technologies: [Android] 9 | categories: [Connectivity] 10 | languages: [Java] 11 | solutions: [Mobile] 12 | github: android/connectivity 13 | level: ADVANCED 14 | apiRefs: 15 | - google:com.google.android.gms.nearby.Nearby 16 | - google:com.google.android.gms.nearby.messages.Messages 17 | - google:com.google.android.gms.nearby.messages.MessageListener 18 | - google:com.google.android.gms.nearby.messages.MessagesOptions 19 | - google:com.google.android.gms.nearby.messages.NearbyMessagesStatusCodes 20 | - google:com.google.android.gms.nearby.messages.NearbyPermissions 21 | - google:com.google.android.gms.nearby.messages.Strategy 22 | - google:com.google.android.gms.nearby.messages.SubscribeOptions 23 | license: apache2 24 | -------------------------------------------------------------------------------- /BluetoothAdvertisements/Application/src/main/res/values-sw600dp/template-styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/.google/packaging.yaml: -------------------------------------------------------------------------------- 1 | 2 | # GOOGLE SAMPLE PACKAGING DATA 3 | # 4 | # This file is used by Google as part of our samples packaging process. 5 | # End users may safely ignore this file. It has no relevance to other systems. 6 | --- 7 | status: PUBLISHED 8 | technologies: [Android] 9 | categories: [Connectivity] 10 | languages: [Java] 11 | solutions: [Mobile] 12 | github: android/connectivity 13 | level: ADVANCED 14 | apiRefs: 15 | - google:com.google.android.gms.nearby.Nearby 16 | - google:com.google.android.gms.nearby.messages.Messages 17 | - google:com.google.android.gms.nearby.messages.MessageListener 18 | - google:com.google.android.gms.nearby.messages.MessagesOptions 19 | - google:com.google.android.gms.nearby.messages.NearbyMessagesStatusCodes 20 | - google:com.google.android.gms.nearby.messages.NearbyPermissions 21 | - google:com.google.android.gms.nearby.messages.Strategy 22 | - google:com.google.android.gms.nearby.messages.SubscribeOptions 23 | license: apache2 24 | -------------------------------------------------------------------------------- /NearbyConnectionsCpp/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/wilkinsonclay/android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Uncomment this to preserve the line number information for 20 | # debugging stack traces. 21 | #-keepattributes SourceFile,LineNumberTable 22 | 23 | # If you keep the line number information, uncomment this to 24 | # hide the original source file name. 25 | #-renamesourcefileattribute SourceFile 26 | -------------------------------------------------------------------------------- /BluetoothChat/build.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | buildscript { 18 | repositories { 19 | google() 20 | jcenter() 21 | } 22 | 23 | dependencies { 24 | classpath 'com.android.tools.build:gradle:3.5.0' 25 | } 26 | } 27 | 28 | allprojects { 29 | repositories { 30 | google() 31 | jcenter() 32 | } 33 | } 34 | 35 | task clean(type: Delete) { 36 | delete rootProject.buildDir 37 | } 38 | -------------------------------------------------------------------------------- /NearbyConnectionsRockPaperScissors/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 18 | 19 | 24 | 25 | -------------------------------------------------------------------------------- /BluetoothLeChat/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | #6200EE 19 | #3700B3 20 | #03DAC5 21 | #0288D1 22 | #D1DBE0 23 | -------------------------------------------------------------------------------- /NetworkConnect/Application/src/main/res/menu/main.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 21 | 24 | 25 | -------------------------------------------------------------------------------- /NearbyConnectionsRockPaperScissors/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/google/home/wxyz/Android/Sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Uncomment this to preserve the line number information for 20 | # debugging stack traces. 21 | #-keepattributes SourceFile,LineNumberTable 22 | 23 | # If you keep the line number information, uncomment this to 24 | # hide the original source file name. 25 | #-renamesourcefileattribute SourceFile 26 | -------------------------------------------------------------------------------- /BluetoothLeGatt/Application/src/main/res/layout/actionbar_indeterminate_progress.xml: -------------------------------------------------------------------------------- 1 | 16 | 20 | 23 | 24 | -------------------------------------------------------------------------------- /CronetKotlin/app/src/main/java/com/example/android/connectivity/cronetsample/MainActivity.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.example.android.connectivity.cronetsample 18 | 19 | import android.os.Bundle 20 | import androidx.appcompat.app.AppCompatActivity 21 | 22 | class MainActivity : AppCompatActivity() { 23 | 24 | override fun onCreate(savedInstanceState: Bundle?) { 25 | super.onCreate(savedInstanceState) 26 | setContentView(R.layout.activity_main) 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/app/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 13 | > 14 | 15 | 21 | 22 | -------------------------------------------------------------------------------- /BluetoothChat/Application/build.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | apply plugin: 'com.android.application' 18 | 19 | android { 20 | compileSdkVersion 29 21 | 22 | defaultConfig { 23 | minSdkVersion 14 24 | targetSdkVersion 29 25 | } 26 | 27 | compileOptions { 28 | sourceCompatibility JavaVersion.VERSION_1_7 29 | targetCompatibility JavaVersion.VERSION_1_7 30 | } 31 | } 32 | 33 | dependencies { 34 | implementation 'androidx.appcompat:appcompat:1.1.0' 35 | } 36 | -------------------------------------------------------------------------------- /BluetoothAdvertisements/Application/src/main/res/values/base-strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | BluetoothAdvertisements 20 | 21 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 13 | 14 | 17 | 64dp 18 | 19 | -------------------------------------------------------------------------------- /.github/workflows/copy-branch.yml: -------------------------------------------------------------------------------- 1 | # Duplicates default main branch to the old master branch 2 | 3 | name: Duplicates main to old master branch 4 | 5 | # Controls when the action will run. Triggers the workflow on push or pull request 6 | # events but only for the main branch 7 | on: 8 | push: 9 | branches: [ main ] 10 | 11 | # A workflow run is made up of one or more jobs that can run sequentially or in parallel 12 | jobs: 13 | # This workflow contains a single job called "copy-branch" 14 | copy-branch: 15 | # The type of runner that the job will run on 16 | runs-on: ubuntu-latest 17 | 18 | # Steps represent a sequence of tasks that will be executed as part of the job 19 | steps: 20 | # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it, 21 | # but specifies master branch (old default). 22 | - uses: actions/checkout@v2 23 | with: 24 | fetch-depth: 0 25 | ref: master 26 | 27 | - run: | 28 | git config user.name github-actions 29 | git config user.email github-actions@github.com 30 | git merge origin/main 31 | git push 32 | -------------------------------------------------------------------------------- /CronetKotlin/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /NearbyConnectionsCpp/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /BluetoothLeChat/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 24 | 25 | -------------------------------------------------------------------------------- /NetworkConnect/Application/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | Welcome to Network Connect! 19 | Click FETCH to fetch the first 500 characters of raw HTML from www.google.com. 20 | 21 | Fetch 22 | Clear 23 | Connection error. 24 | Fetch cancelled. 25 | 26 | -------------------------------------------------------------------------------- /BluetoothLeGatt/Application/src/main/res/values/base-strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | BluetoothLeGatt 20 | 21 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /BluetoothLeChat/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /BluetoothLeChat/app/src/main/java/com/example/bluetoothlechat/scan/DeviceScanViewState.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2020 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.example.bluetoothlechat.scan 17 | 18 | import android.bluetooth.BluetoothDevice 19 | 20 | sealed class DeviceScanViewState { 21 | object ActiveScan: DeviceScanViewState() 22 | class ScanResults(val scanResults: Map): DeviceScanViewState() 23 | class Error(val message: String): DeviceScanViewState() 24 | object AdvertisementNotSupported: DeviceScanViewState() 25 | } -------------------------------------------------------------------------------- /NearbyMessagesBackgroundBeacons/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 16dp 16 | 16dp 17 | 16sp 18 | 48dp 19 | 12dp 20 | 16dp 21 | -------------------------------------------------------------------------------- /BluetoothAdvertisements/Application/src/main/res/values-v21/base-template-styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 20 | 21 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /CronetKotlin/app/src/test/java/com/example/android/connectivity/cronetsample/ExampleUnitTest.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.example.android.connectivity.cronetsample 18 | 19 | import org.junit.Test 20 | 21 | import org.junit.Assert.* 22 | 23 | /** 24 | * Example local unit test, which will execute on the development machine (host). 25 | * 26 | * See [testing documentation](http://d.android.com/tools/testing). 27 | */ 28 | class ExampleUnitTest { 29 | @Test 30 | fun addition_isCorrect() { 31 | assertEquals(4, 2 + 2) 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /NetworkConnect/Application/src/main/res/values/base-strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | NetworkConnect 20 | 21 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /WifiRttScan/Application/src/main/res/values/base-strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | WifiRttScan 20 | 21 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /NearbyConnectionsRockPaperScissors/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Rock Paper Scissors 4 | Cannot start without required permissions 5 | 6 | Your codename: %s 7 | Opponent: %s 8 | none (yet) 9 | 10 | Disconnected 11 | Searching 12 | Connected 13 | 14 | You chose %s 15 | 16 | %1$s beats %2$s! 17 | You both chose %s 18 | %1$s loses to %2$s… 19 | 20 | Find opponent 21 | Disconnect 22 | 23 | Rock 24 | Paper 25 | Scissors 26 | 27 | %1$d : %2$d 28 | 29 | -------------------------------------------------------------------------------- /BluetoothLeChat/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | # IDE (e.g. Android Studio) users: 3 | # Gradle settings configured through the IDE *will override* 4 | # any settings specified in this file. 5 | # For more details on how to configure your build environment visit 6 | # http://www.gradle.org/docs/current/userguide/build_environment.html 7 | # Specifies the JVM arguments used for the daemon process. 8 | # The setting is particularly useful for tweaking memory settings. 9 | org.gradle.jvmargs=-Xmx2048m 10 | # When configured, Gradle will run in incubating parallel mode. 11 | # This option should only be used with decoupled projects. More details, visit 12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 13 | # org.gradle.parallel=true 14 | # AndroidX package structure to make it clearer which packages are bundled with the 15 | # Android operating system, and which are packaged with your app"s APK 16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 17 | android.useAndroidX=true 18 | # Automatically convert third-party libraries to use AndroidX 19 | android.enableJetifier=true 20 | # Kotlin code style for this project: "official" or "obsolete": 21 | kotlin.code.style=official -------------------------------------------------------------------------------- /BluetoothChat/Application/src/main/res/values/template-dimens.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 4dp 22 | 8dp 23 | 16dp 24 | 32dp 25 | 64dp 26 | 27 | 28 | 29 | @dimen/margin_medium 30 | @dimen/margin_medium 31 | 32 | 33 | -------------------------------------------------------------------------------- /WifiRttScan/Application/src/main/res/values/template-dimens.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 4dp 22 | 8dp 23 | 16dp 24 | 32dp 25 | 64dp 26 | 27 | 28 | 29 | @dimen/margin_medium 30 | @dimen/margin_medium 31 | 32 | 33 | -------------------------------------------------------------------------------- /BeamLargeFiles/Application/src/main/res/values/template-dimens.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 4dp 22 | 8dp 23 | 16dp 24 | 32dp 25 | 64dp 26 | 27 | 28 | 29 | @dimen/margin_medium 30 | @dimen/margin_medium 31 | 32 | 33 | -------------------------------------------------------------------------------- /BluetoothLeGatt/Application/src/main/res/values/template-dimens.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 4dp 22 | 8dp 23 | 16dp 24 | 32dp 25 | 64dp 26 | 27 | 28 | 29 | @dimen/margin_medium 30 | @dimen/margin_medium 31 | 32 | 33 | -------------------------------------------------------------------------------- /NetworkConnect/Application/src/main/res/values/template-dimens.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 4dp 22 | 8dp 23 | 16dp 24 | 32dp 25 | 64dp 26 | 27 | 28 | 29 | @dimen/margin_medium 30 | @dimen/margin_medium 31 | 32 | 33 | -------------------------------------------------------------------------------- /BluetoothAdvertisements/Application/src/main/res/values/template-dimens.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 4dp 22 | 8dp 23 | 16dp 24 | 32dp 25 | 64dp 26 | 27 | 28 | 29 | @dimen/margin_medium 30 | @dimen/margin_medium 31 | 32 | 33 | -------------------------------------------------------------------------------- /BluetoothLeChat/app/src/main/java/com/example/bluetoothlechat/chat/LocalMessageViewHolder.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2020 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.example.bluetoothlechat.chat 17 | 18 | import android.view.View 19 | import android.widget.TextView 20 | import androidx.recyclerview.widget.RecyclerView 21 | import com.example.bluetoothlechat.bluetooth.Message 22 | import com.example.bluetoothlechat.R 23 | 24 | class LocalMessageViewHolder(view: View) : RecyclerView.ViewHolder(view) { 25 | 26 | private val messageText = itemView.findViewById(R.id.message_text) 27 | 28 | fun bind(message: Message.LocalMessage) { 29 | messageText.text = message.text 30 | } 31 | } -------------------------------------------------------------------------------- /BluetoothLeChat/app/src/main/java/com/example/bluetoothlechat/chat/RemoteMessageViewHolder.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2020 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.example.bluetoothlechat.chat 17 | 18 | import android.view.View 19 | import android.widget.TextView 20 | import androidx.recyclerview.widget.RecyclerView 21 | import com.example.bluetoothlechat.bluetooth.Message 22 | import com.example.bluetoothlechat.R 23 | 24 | class RemoteMessageViewHolder(view: View) : RecyclerView.ViewHolder(view) { 25 | 26 | private val messageText = itemView.findViewById(R.id.message_text) 27 | 28 | fun bind(message: Message.RemoteMessage) { 29 | messageText.text = message.text 30 | } 31 | } -------------------------------------------------------------------------------- /NearbyConnectionsRockPaperScissors/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 18 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /BluetoothLeChat/app/src/main/java/com/example/bluetoothlechat/bluetooth/Message.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2020 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.example.bluetoothlechat.bluetooth 17 | 18 | /** 19 | * This sealed class represents the messages sent between connected devices. 20 | * The RemoteMessage class represents a message coming from a remote device. 21 | * The LocalMessage class represents a message the user wants to send to the remote device. 22 | * 23 | * @param text is the message text the user sends to the other connected device. 24 | */ 25 | sealed class Message(val text: String) { 26 | class RemoteMessage(text: String) : Message(text) 27 | class LocalMessage(text: String) : Message(text) 28 | } -------------------------------------------------------------------------------- /BluetoothChat/Application/src/main/java/com/example/android/bluetoothchat/Constants.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2014 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.example.android.bluetoothchat; 18 | 19 | /** 20 | * Defines several constants used between {@link BluetoothChatService} and the UI. 21 | */ 22 | public interface Constants { 23 | 24 | // Message types sent from the BluetoothChatService Handler 25 | int MESSAGE_STATE_CHANGE = 1; 26 | int MESSAGE_READ = 2; 27 | int MESSAGE_WRITE = 3; 28 | int MESSAGE_DEVICE_NAME = 4; 29 | int MESSAGE_TOAST = 5; 30 | 31 | // Key names received from the BluetoothChatService Handler 32 | String DEVICE_NAME = "device_name"; 33 | String TOAST = "toast"; 34 | 35 | } 36 | -------------------------------------------------------------------------------- /NearbyConnectionsWalkieTalkie/app/src/main/java/com/google/location/nearby/apps/walkietalkie/AudioBuffer.java: -------------------------------------------------------------------------------- 1 | package com.google.location.nearby.apps.walkietalkie; 2 | 3 | /** 4 | * A buffer that grabs the smallest supported sample rate for {@link android.media.AudioTrack} and 5 | * {@link android.media.AudioRecord}. 6 | */ 7 | public abstract class AudioBuffer { 8 | private static final int[] POSSIBLE_SAMPLE_RATES = 9 | new int[] {8000, 11025, 16000, 22050, 44100, 48000}; 10 | 11 | final int size; 12 | final int sampleRate; 13 | final byte[] data; 14 | 15 | protected AudioBuffer() { 16 | int size = -1; 17 | int sampleRate = -1; 18 | 19 | // Iterate over all possible sample rates, and try to find the shortest one. The shorter 20 | // it is, the faster it'll stream. 21 | for (int rate : POSSIBLE_SAMPLE_RATES) { 22 | sampleRate = rate; 23 | size = getMinBufferSize(sampleRate); 24 | if (validSize(size)) { 25 | break; 26 | } 27 | } 28 | 29 | // If none of them were good, then just pick 1kb 30 | if (!validSize(size)) { 31 | size = 1024; 32 | } 33 | 34 | this.size = size; 35 | this.sampleRate = sampleRate; 36 | data = new byte[size]; 37 | } 38 | 39 | protected abstract boolean validSize(int size); 40 | 41 | protected abstract int getMinBufferSize(int sampleRate); 42 | } 43 | -------------------------------------------------------------------------------- /WifiRttScan/Application/src/main/res/drawable/ic_round_network_wifi_24px.xml: -------------------------------------------------------------------------------- 1 | 2 | 14 | 19 | 23 | 26 | 27 | -------------------------------------------------------------------------------- /WifiRttScan/Application/src/main/res/drawable/ic_round_network_wifi_white_24px.xml: -------------------------------------------------------------------------------- 1 | 2 | 14 | 19 | 23 | 26 | 27 | -------------------------------------------------------------------------------- /BeamLargeFiles/README.md: -------------------------------------------------------------------------------- 1 | 2 | Android BeamLargeFiles Sample 3 | =================================== 4 | 5 | This sample demonstrates how to transfer large files via Android Beam. After the initial 6 | handshake over NFC, file transfer will take place over a secondary high-speed 7 | communication channel such as Bluetooth or WiFi Direct. 8 | 9 | 10 | This feature requires Android 4.1 (Jelly Bean) or above. Unlike traditional Beam, 11 | your application will not receive an Intent on the receiving device. Instead, the system 12 | will save the file to disk and display a notification that the user can select to open 13 | the file using a standard ACTION_VIEW Intent. 14 | 15 | Pre-requisites 16 | -------------- 17 | 18 | - Android SDK 28 19 | - Android Build Tools v28.0.3 20 | - Android Support Repository 21 | 22 | Getting Started 23 | --------------- 24 | 25 | This sample uses the Gradle build system. To build this project, use the 26 | "gradlew build" command or use "Import Project" in Android Studio. 27 | 28 | Support 29 | ------- 30 | 31 | - Stack Overflow: http://stackoverflow.com/questions/tagged/android 32 | 33 | If you've found an error in this sample, please file an issue: 34 | https://github.com/android/connectivity 35 | 36 | Patches are encouraged, and may be submitted by forking this project and 37 | submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details. 38 | -------------------------------------------------------------------------------- /BluetoothLeChat/app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 22 | 23 | 30 | -------------------------------------------------------------------------------- /BluetoothLeGatt/Application/src/main/res/menu/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 21 | 25 | 29 | 30 | -------------------------------------------------------------------------------- /BluetoothLeChat/build.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 17 | buildscript { 18 | ext.kotlin_version = "1.4.0" 19 | repositories { 20 | google() 21 | jcenter() 22 | } 23 | dependencies { 24 | classpath 'com.android.tools.build:gradle:4.0.1' 25 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 26 | // NOTE: Do not place your application dependencies here; they belong 27 | // in the individual module build.gradle files 28 | } 29 | } 30 | 31 | allprojects { 32 | repositories { 33 | google() 34 | jcenter() 35 | } 36 | } 37 | 38 | task clean(type: Delete) { 39 | delete rootProject.buildDir 40 | } -------------------------------------------------------------------------------- /BluetoothLeGatt/Application/src/main/res/layout/listitem_device.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 20 | 24 | 28 | -------------------------------------------------------------------------------- /BluetoothLeGatt/Application/src/main/res/menu/gatt_services.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 21 | 25 | 29 | 30 | -------------------------------------------------------------------------------- /BluetoothChat/Application/src/main/res/menu/bluetooth_chat.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 23 | 24 | 28 | 29 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /BluetoothLeChat/app/src/main/java/com/example/bluetoothlechat/MainActivity.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2020 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.example.bluetoothlechat 17 | 18 | import androidx.appcompat.app.AppCompatActivity 19 | import android.os.Bundle 20 | import com.example.bluetoothlechat.bluetooth.ChatServer 21 | 22 | class MainActivity : AppCompatActivity() { 23 | 24 | override fun onCreate(savedInstanceState: Bundle?) { 25 | super.onCreate(savedInstanceState) 26 | setContentView(R.layout.activity_main) 27 | } 28 | 29 | // Run the chat server as long as the app is on screen 30 | override fun onStart() { 31 | super.onStart() 32 | ChatServer.startServer(application) 33 | } 34 | 35 | override fun onStop() { 36 | super.onStop() 37 | ChatServer.stopServer() 38 | } 39 | } -------------------------------------------------------------------------------- /NearbyConnectionsCpp/app/src/main/java/com/sample/helper/JUITextView.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2018 Google LLC 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.sample.helper; 17 | 18 | import android.content.Context; 19 | import android.support.v7.widget.AppCompatTextView; 20 | import android.util.AttributeSet; 21 | 22 | 23 | /* 24 | * Java UI TextView implementation 25 | */ 26 | public class JUITextView extends AppCompatTextView { 27 | 28 | public JUITextView(Context context) { 29 | super(context); 30 | } 31 | 32 | public JUITextView(Context context, AttributeSet attrs) { 33 | super(context, attrs); 34 | } 35 | 36 | public JUITextView(Context context, AttributeSet attrs, int defStyleAttr) { 37 | super(context, attrs, defStyleAttr); 38 | } 39 | 40 | public JUIForwardingPopupWindow getDummyWindow() { 41 | return null; 42 | } 43 | 44 | } 45 | --------------------------------------------------------------------------------