[英]Difference between BluetoothAdapter.STATE_OFF/DISCONNECTED
I am writing an Bluetooth API supported app, where I found BluetoothAdapter state as ON/OFF/CONNECTED/DISCONNECTED 我正在编写支持蓝牙API的应用,在其中我发现BluetoothAdapter的状态为ON / OFF / CONNECTED / DISCONNECTED
Can any one tell difference between: 谁能分辨出以下两者之间的区别:
BluetoothAdapter.STATE_ON Vs STATE_CONNECTED BluetoothAdapter.STATE_ON 与 STATE_CONNECTED
BluetoothAdapter.STATE_OFF Vs STATE_DISCONNECTED BluetoothAdapter.STATE_OFF 与 STATE_DISCONNECTED
STATE_CONNECTED The profile is in connected state STATE_CONNECTED该配置文件处于连接状态
STATE_CONNECTING The profile is in connecting state STATE_CONNECTING该配置文件处于连接状态
STATE_DISCONNECTED The profile is in disconnected state STATE_DISCONNECTED该配置文件处于断开状态
STATE_DISCONNECTING The profile is in disconnecting state STATE_DISCONNECTING该配置文件处于断开状态
STATE_OFF Indicates the local Bluetooth adapter is off. STATE_OFF表示本地蓝牙适配器已关闭。
STATE_ON Indicates the local Bluetooth adapter is on, and ready for use. STATE_ON表示本地蓝牙适配器已打开并且可以使用。
Refer : http://developer.android.com/reference/android/bluetooth/BluetoothAdapter.html 请参考: http : //developer.android.com/reference/android/bluetooth/BluetoothAdapter.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.