This sample shows how to implement two-way text chat over Bluetooth between two Android devices, using all the fundamental Bluetooth API capabilities. The sample demonstrates the following, using the Bluetooth API:
- Setting up Bluetooth
- Scanning for other Bluetooth devices
- Querying the local Bluetooth adapter for paired Bluetooth devices
- Establishing RFCOMM channels/sockets
- Connecting to a remote device
- Transfering data over Bluetooth
This sample uses the Gradle build system. To build this project, use the "gradle build" command or use "Import Project" in Android Studio.