blob: d9ca4f13101f8189277b1733ac215213da4c106b [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001<HTML>
2<BODY>
Scott Main36cdecd2010-10-14 13:42:19 -07003<p>Provides classes that manage Bluetooth functionality, such as scanning for
kmccormickf14ff1c2013-06-06 11:14:57 -07004devices, connecting with devices, and managing data transfer between devices.
5The Bluetooth API supports both "Classic Bluetooth" and Bluetooth Low Energy.</p>
Scott Main36cdecd2010-10-14 13:42:19 -07006
kmccormickf14ff1c2013-06-06 11:14:57 -07007<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">
Katie McCormickf2041ac2013-11-26 15:59:03 -080011Bluetooth Low Energy</a> (BLE) guide.</p>
Scott Main36cdecd2010-10-14 13:42:19 -070012{@more}
Scott Main9fab0ae2009-11-03 18:17:59 -080013
14<p>The Bluetooth APIs let applications:</p>
15<ul>
Katie McCormickf2041ac2013-11-26 15:59:03 -080016 <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>
Scott Main9fab0ae2009-11-03 18:17:59 -080024</ul>
25
Scott Main1362bbc2009-12-16 18:32:55 -080026<p>
Scott Main9fab0ae2009-11-03 18:17:59 -080027To perform Bluetooth communication using these APIs, an application must
28declare the {@link android.Manifest.permission#BLUETOOTH} permission. Some
Scott Main1362bbc2009-12-16 18:32:55 -080029additional functionality, such as requesting device discovery,
30also requires the {@link android.Manifest.permission#BLUETOOTH_ADMIN}
Scott Main9fab0ae2009-11-03 18:17:59 -080031permission.
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080032</p>
Scott Main9fab0ae2009-11-03 18:17:59 -080033
Scott Main9fab0ae2009-11-03 18:17:59 -080034<p class="note"><strong>Note:</strong>
Scott Mainf4f05b82011-01-07 14:38:23 -080035Not all Android-powered devices provide Bluetooth functionality.</p>
Joe Fernandez3aef8e1d2011-12-20 10:38:34 -080036
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080037</BODY>
38</HTML>