• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<HTML>
2<BODY>
3<p>Provides classes that manage Bluetooth functionality, such as scanning for
4devices, connecting with devices, and managing data transfer between devices.
5The Bluetooth API supports both "Classic Bluetooth" and Bluetooth Low Energy.</p>
6
7<p>For more information about Classic Bluetooth, see the
8<a href="{@docRoot}guide/topics/connectivity/bluetooth.html">Bluetooth</a> guide.
9For more information about Bluetooth Low Energy, see the
10<a href="{@docRoot}guide/topics/connectivity/bluetooth-le.html">
11Bluetooth Low Energy</a> (BLE) guide.</p>
12{@more}
13
14<p>The Bluetooth APIs let applications:</p>
15<ul>
16  <li>Scan for other Bluetooth devices (including BLE devices).</li>
17  <li>Query the local Bluetooth adapter for paired Bluetooth devices.</li>
18  <li>Establish RFCOMM channels/sockets.</li>
19  <li>Connect to specified sockets on other devices.</li>
20  <li>Transfer data to and from other devices.</li>
21  <li>Communicate with BLE devices, such as proximity sensors, heart rate
22    monitors, fitness devices, and so on.</li>
23  <li>Act as a GATT client or a GATT server (BLE).</li>
24</ul>
25
26<p>
27To perform Bluetooth communication using these APIs, an application must
28declare the {@link android.Manifest.permission#BLUETOOTH} permission. Some
29additional functionality, such as requesting device discovery,
30also requires the {@link android.Manifest.permission#BLUETOOTH_ADMIN}
31permission.
32</p>
33
34<p class="note"><strong>Note:</strong>
35Not all Android-powered devices provide Bluetooth functionality.</p>
36
37</BODY>
38</HTML>
39