Skip to content

The source code of the tic tac toe game application with Jetpack Compose

Notifications You must be signed in to change notification settings

MohammadSadeghMehrafzoon/NearbyConnectionsApp

Repository files navigation

The source code of the tic tac toe game application with Jetpack Compose

Description

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:

  1. What Advertisers and Discoverers are.
  2. About advertising your phone for Nearby Connections.
  3. How to establish a connection between an advertiser and a discoverer.
  4. How to send and receive payloads.

Libraries used

  1. implementation ("androidx.compose.runtime:runtime-livedata:1.2.1")
  2. implementation ("com.google.android.gms:play-services-nearby:18.3.0")

Screenshots

photo_2024-02-02_01-21-53 photo_2024-02-02_01-20-22

Releases

No releases published

Packages

No packages published

Languages