Professional Documents
Culture Documents
Bluetooth Chat
Bluetooth Chat
Bluetooth Chat
Introduction
This application allows two Android devices to carry out two-way text chat over Bluetooth. It demonstrates all the fundamental Bluetooth API capabilities, capabilities such as: Scanning for other Bluetooth devices Querying Q i the th l local l Bl Bluetooth t th adapter d t f for paired i d Bl Bluetooth t th d devices i Establishing RFCOMM channels/sockets Connecting to a remote device Transferring data over Bluetooth
device_list. xml
Takestheview from
Device_name. xml
Takesthenameof newdevice
BluetoothChat.java
DeviceListActivity.java
BluetoothChat Application
BluetoothChatService. java
RockyJagtiani TechnicalHead Suven Consultants 4
Incorrect Case :
If we try to chat if the device is not connected then the application will give the Toast message as You are not connected to the device!
BluetoothAPIs
The application framework provides access to the Bluetooth functionality through the Android Bluetooth APIs. These APIs let applications wirelessly connect to other Bluetooth devices, enabling pointtopoint and multipoint wireless features. Android Bluetooth APIs are used to perform four major tasks setting up BT, finding devices, connecting g them and transferring g data.
RockyJagtiani TechnicalHead Suven Consultants 6
Thisapplicationcanbeusedin:
_____________________________________ _____________________________________ _____________________________________ _____________________________________ _____________________________________ _____________________________________ _____________________________________ _____________________________________ _____________________________________
RockyJagtiani TechnicalHead Suven Consultants 8