In the Inviting a friend to play a game – Part 1 recipe in Chapter 7, Sharing Content across Devices, we were able to share Bluetooth information between two devices. In Part 2, we will use that information to connect the devices and start a noughts and crosses game.
We will use the
BluetoothService class to handle Bluetooth communication and send simple text messages between the devices:
NfcBookCh9Example4and package named