The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | <HTML> |
| 2 | <BODY> |
Scott Main | 36cdecd | 2010-10-14 13:42:19 -0700 | [diff] [blame] | 3 | <p>Provides classes that manage Bluetooth functionality, such as scanning for |
kmccormick | f14ff1c | 2013-06-06 11:14:57 -0700 | [diff] [blame] | 4 | devices, connecting with devices, and managing data transfer between devices. |
| 5 | The Bluetooth API supports both "Classic Bluetooth" and Bluetooth Low Energy.</p> |
Scott Main | 36cdecd | 2010-10-14 13:42:19 -0700 | [diff] [blame] | 6 | |
kmccormick | f14ff1c | 2013-06-06 11:14:57 -0700 | [diff] [blame] | 7 | <p>For more information about Classic Bluetooth, see the |
| 8 | <a href="{@docRoot}guide/topics/connectivity/bluetooth.html">Bluetooth</a> guide. |
| 9 | For more information about Bluetooth Low Energy, see the |
| 10 | <a href="{@docRoot}guide/topics/connectivity/bluetooth-le.html"> |
Katie McCormick | f2041ac | 2013-11-26 15:59:03 -0800 | [diff] [blame] | 11 | Bluetooth Low Energy</a> (BLE) guide.</p> |
Scott Main | 36cdecd | 2010-10-14 13:42:19 -0700 | [diff] [blame] | 12 | {@more} |
Scott Main | 9fab0ae | 2009-11-03 18:17:59 -0800 | [diff] [blame] | 13 | |
| 14 | <p>The Bluetooth APIs let applications:</p> |
| 15 | <ul> |
Katie McCormick | f2041ac | 2013-11-26 15:59:03 -0800 | [diff] [blame] | 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> |
Scott Main | 9fab0ae | 2009-11-03 18:17:59 -0800 | [diff] [blame] | 24 | </ul> |
| 25 | |
Scott Main | 1362bbc | 2009-12-16 18:32:55 -0800 | [diff] [blame] | 26 | <p> |
Scott Main | 9fab0ae | 2009-11-03 18:17:59 -0800 | [diff] [blame] | 27 | To perform Bluetooth communication using these APIs, an application must |
| 28 | declare the {@link android.Manifest.permission#BLUETOOTH} permission. Some |
Scott Main | 1362bbc | 2009-12-16 18:32:55 -0800 | [diff] [blame] | 29 | additional functionality, such as requesting device discovery, |
| 30 | also requires the {@link android.Manifest.permission#BLUETOOTH_ADMIN} |
Scott Main | 9fab0ae | 2009-11-03 18:17:59 -0800 | [diff] [blame] | 31 | permission. |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 32 | </p> |
Scott Main | 9fab0ae | 2009-11-03 18:17:59 -0800 | [diff] [blame] | 33 | |
Scott Main | 9fab0ae | 2009-11-03 18:17:59 -0800 | [diff] [blame] | 34 | <p class="note"><strong>Note:</strong> |
Scott Main | f4f05b8 | 2011-01-07 14:38:23 -0800 | [diff] [blame] | 35 | Not all Android-powered devices provide Bluetooth functionality.</p> |
Joe Fernandez | 3aef8e1d | 2011-12-20 10:38:34 -0800 | [diff] [blame] | 36 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 37 | </BODY> |
| 38 | </HTML> |