android 蓝牙监测
2016-12-05 00:00
274 查看
public final static int BLE_NO_DEVICE = 0; public final static int BLE_ON = 1; public final static int BLE_OFF = 2; public static int getBleStatus(){ BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); if(adapter==null){ return BLE_NO_DEVICE; } if(adapter.isEnabled()){ return BLE_ON; }else{ return BLE_OFF; } }
相关文章推荐
- 【Android】传感器(线性加速度、陀螺仪、磁场)信号实时获取,实时监测指定wifi、蓝牙信号强度
- Android 监测蓝牙程序是否开启
- android平台蓝牙编程
- android cupcake上实现蓝牙键盘接入
- android手机怎样通过蓝牙传输文件
- Android提高第十三篇之探秘蓝牙隐藏API
- Android 中文API (69) —— BluetoothAdapter[蓝牙]
- Android 中文API (65) —— BluetoothClass[蓝牙]
- Android 蓝牙 资料
- Android提高第十二篇之蓝牙传感应用
- Android提高第十三篇之探秘蓝牙隐藏API
- Android蓝牙API之BluetoothAdapter类(1)
- Android蓝牙经验分享二
- Android 上成功实现了蓝牙的一些Profile
- android G1蓝牙与无线网络,APN接入点设置
- Android蓝牙经验分享
- Android蓝牙API之BluetoothAdapter类(2)
- Android蓝牙经验分享一
- android平台蓝牙编程
- Android 中文API (69) —— BluetoothAdapter[蓝牙]