![]() You must request the BLUETOOTH permission In order to use Bluetooth features in your application, you need to declareĪt least one of two Bluetooth permissions: BLUETOOTH and BLUETOOTH_ADMIN. Is, the internal service that runs a particular profile). BluetoothProfile.ServiceListener An interface that notifies BluetoothProfile IPCĬlients when they have been connected to or disconnected from the service (that BluetoothHealthAppConfiguration Represents an application configuration that the Bluetooth Health third-partyĪpplication registers to communicate with a remote Bluetooth healthĭevice. Implement the callback methods to receive updates about changes in theĪpplication’s registration state and Bluetooth channel state. BluetoothHealthCallback An abstract class that you use to implement BluetoothHealth callbacks. BluetoothHealth Represents a Health Device Profile proxy that controls the Bluetooth service. "A2DP" stands for Advanced Audio Distribution Profile. BluetoothA2dp Defines how high qualityĪudio can be streamed from one device to another over a Bluetooth connection. For more discussion of profiles, see Working with Profiles BluetoothHeadset Provides support forīluetooth headsets to be used with mobile phones. Interface specification for Bluetooth-based communication between devices. However, this does not reliably describeĪll Bluetooth profiles and services supported by the device, but is useful as a This is a read-only set of properties that define the device's major and BluetoothClass Describes the general characteristics and capabilities of a Bluetoothĭevice. Remote Bluetooth device makes a connection request to the this device, theīluetoothServerSocket will return a connected BluetoothSocket when theĬonnection is accepted. In order to connect twoĪndroid devices, one device must open a server socket with this class. ![]() BluetoothServerSocket Represents an open server socket that listens for incoming requests This is the connection point that allowsĪn application to exchange data with another Bluetooth device via InputStreamĪnd OutputStream. BluetoothSocket Represents the interface for a Bluetooth socket (similar to a TCP With a remote device through a BluetoothSocket orĭevice such as its name, address, class, and bonding state. BluetoothDevice Represents a remote Bluetooth device. MAC address, and create a BluetoothServerSocket toįrom other devices. You can discover other Bluetooth devices, query a list of bonded (paired)ĭevices, instantiate a BluetoothDevice using a known TheīluetoothAdapter is the entry-point for all Bluetooth ![]() Here's a summary of the classes and interfaces you will need to create BluetoothĬonnections: BluetoothAdapter Represents the local Bluetooth adapter (Bluetooth radio). The four major tasks necessary to communicate using Bluetooth: setting upīluetooth, finding devices that are either paired or available in the localĪrea, connecting devices, and transferring data between devices.Īll of the Bluetooth APIs are available in the android.bluetooth This document describes how to use the Android Bluetooth APIs to accomplish Transfer data to and from other devices.Connect to other devices through service discovery.Query the local Bluetooth adapter for paired Bluetooth devices.Using the Bluetooth APIs, an Android application can perform the These APIs let applications wirelesslyĬonnect to other Bluetooth devices, enabling point-to-point and multipoint ![]() The application framework provides access to the Bluetooth functionality through Which allows a device to wirelessly exchange data with other Bluetooth devices. The Android platform includes support for the Bluetooth network stack,
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |