How halilozel1903/androidbluetoothchatapp works
This is a small Android Bluetooth chat app. The user views paired devices, starts listening or selects a peer to connect, then sends and receives text over a Bluetooth socket; connection and message status are reflected in the UI. The sampled source places the UI, connection threads, stream handling, and message dispatch in MainActivity.java, so these are separate responsibilities sharing that path. README capabilities inform the overview, but unsampled scan and multi-connection behavior are not mapped as implemented flows.
Main entry points: MainActivity.java Chat activity · activity_main.xml Chat screen
Components 7
Chat UI
- Chat activity
app/src/main/java/com/halil/ozel/bluetoothchatapp/MainActivity.java - Chat screen
app/src/main/res/layout/activity_main.xml
Bluetooth Connection
- Android Bluetooth API
- Connection workers
app/src/main/java/com/halil/ozel/bluetoothchatapp/MainActivity.java
Message Handling
- Socket streams
app/src/main/java/com/halil/ozel/bluetoothchatapp/MainActivity.java - UI message handler
app/src/main/java/com/halil/ozel/bluetoothchatapp/MainActivity.java
Other components
- User
Connections 9
- User → Chat activity: uses
README.md - Chat activity → Chat screen: loads
app/src/main/java/com/halil/ozel/bluetoothchatapp/MainActivity.java - Chat activity → Android Bluetooth API: accesses
app/src/main/java/com/halil/ozel/bluetoothchatapp/MainActivity.java - Chat activity → Connection workers: starts
app/src/main/java/com/halil/ozel/bluetoothchatapp/MainActivity.java - Connection workers → Android Bluetooth API: accepts or connects
app/src/main/java/com/halil/ozel/bluetoothchatapp/MainActivity.java - Connection workers → Socket streams: starts
app/src/main/java/com/halil/ozel/bluetoothchatapp/MainActivity.java - Chat activity → Socket streams: writes text
app/src/main/java/com/halil/ozel/bluetoothchatapp/MainActivity.java - Socket streams → UI message handler: dispatches received data
app/src/main/java/com/halil/ozel/bluetoothchatapp/MainActivity.java - UI message handler → Chat activity: updates UI
app/src/main/java/com/halil/ozel/bluetoothchatapp/MainActivity.java