Android BluetoothAdapter
来源:互联网 发布:linux返回上一步 编辑:程序博客网 时间:2024/06/05 20:07
本文基于android 7.0代码
BluetoothAdapter
frameworks/base/core/java/android/bluetooth/BluetoothAdapter.java
提供了7个状态值
/** * Indicates the local Bluetooth adapter is off. */ public static final int STATE_OFF = 10; /** * Indicates the local Bluetooth adapter is turning on. However local * clients should wait for {@link #STATE_ON} before attempting to * use the adapter. */ public static final int STATE_TURNING_ON = 11; /** * Indicates the local Bluetooth adapter is on, and ready for use. */ public static final int STATE_ON = 12; /** * Indicates the local Bluetooth adapter is turning off. Local clients * should immediately attempt graceful disconnection of any remote links. */ public static final int STATE_TURNING_OFF = 13; /** * Indicates the local Bluetooth adapter is turning Bluetooth LE mode on. * @hide */ public static final int STATE_BLE_TURNING_ON = 14; /** * Indicates the local Bluetooth adapter is in LE only mode. * @hide */ public static final int STATE_BLE_ON = 15; /** * Indicates the local Bluetooth adapter is turning off LE only mode. * @hide */ public static final int STATE_BLE_TURNING_OFF = 16;
BLE就是Bluetooth Low Energy,具体参考下面的文档
https://developer.android.com/guide/topics/connectivity/bluetooth-le.html
BluetoothAdapter提供了很多功能接口,蓝牙开启关闭都是通过这个类搞定的
enable
disable
…
0 0
- android-BluetoothAdapter
- Android BluetoothAdapter
- android bluetooth-----BluetoothAdapter
- [Bluetooth] Android BluetoothAdapter
- Android BluetoothAdapter详解
- Android : BluetoothAdapter.LeScanCallback
- android-BluetoothAdapter.LeScanCallback
- Android BluetoothAdapter使用场景
- 【Android 应用开发】BluetoothAdapter解析
- android 蓝牙BluetoothAdapter的介绍
- Android蓝牙浅谈(BluetoothAdapter)
- Android蓝牙API之BluetoothAdapter类(1)
- Android蓝牙API之BluetoothAdapter类(2)
- Android蓝牙API之BluetoothAdapter类
- Android蓝牙API之BluetoothAdapter类
- Android蓝牙API之BluetoothAdapter类
- Android 蓝牙API之BluetoothAdapter类使用
- Android蓝牙API之BluetoothAdapter类(1)
- matplotlib
- 4. Median of Two Sorted Arrays
- 办理芯片银行卡时记得把“闪付”功能取消
- DBCC IND跟DBCC PAGE简介
- ORACLE数据库中将clob查询结果展开
- Android BluetoothAdapter
- Android编程常见问题之六
- mysql函数
- Handler execution resulted in exception: Content type 'application/json;charset=UTF-8' not supported
- 查找某个进程拥有的所有窗口
- How tomcat works——7 日志记录器
- 修改Android签名证书keystore的密码、别名alias以及别名密码
- http://blog.sina.com.cn/s/blog_ebbe6d790102vmez.html
- VC++动态连接库详解