The source code of the tic tac toe game application with Jetpack Compose
Learn how to exchange data between two Android devices in an offline peer-to-peer fashion using the Nearby Connections API By Mohammad Sadegh Mehrafzoon.
Nearby Connections allows Android devices within close proximity to connect in a peer-to-peer fashion enabling the exchange of data. Internally, Nearby Connections combines and abstracts features, such as Bluetooth and Wi-Fi, to create an easy-to-use API.
In this source code, you’ll learn:
- What Advertisers and Discoverers are.
- About advertising your phone for Nearby Connections.
- How to establish a connection between an advertiser and a discoverer.
- How to send and receive payloads.
- implementation ("androidx.compose.runtime:runtime-livedata:1.2.1")
- implementation ("com.google.android.gms:play-services-nearby:18.3.0")