简体   繁体   English

BluetoothAdapter.STATE_OFF / DISCONNECTED之间的区别

[英]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.

相关问题 收到BluetoothAdapter时,从蓝牙服务器始终正常断开连接。STATE_TURNING_OFF - Consistent graceful disconnect from Bluetooth server when receiving BluetoothAdapter.STATE_TURNING_OFF BluetoothAdapter:getState():mService = null。 返回STATE_OFF无限重复 - BluetoothAdapter: getState() : mService = null. Returning STATE_OFF repeats infinitely Xamarin:ConnectivityManager.ConnectivityAction和BluetoothAdapter.ACTION_STATE_CHANGED之间不同 - Xamarin:Different between ConnectivityManager.ConnectivityAction and BluetoothAdapter.ACTION_STATE_CHANGED 检测对 BluetoothAdapter 所做的状态更改? - Detecting state changes made to the BluetoothAdapter? registerReceiver BluetoothAdapter.ACTION_STATE_CHANGED不起作用 - registerReceiver BluetoothAdapter.ACTION_STATE_CHANGED not working 财产和国家有什么区别? - What is the difference between property and state? startBluetoothSco不断在SCO_AUDIO_STATE_CONNECTING和SCO_AUDIO_STATE_DISCONNECTED之间切换 - startBluetoothSco keeps jumping between SCO_AUDIO_STATE_CONNECTING and SCO_AUDIO_STATE_DISCONNECTED 如何在 Jetpack Compose 中动态跟踪 BluetoothAdapter 状态变化? - How to track BluetoothAdapter state changes dynamically in Jetpack Compose? 保存的实例状态和静态变量之间的区别 - Difference between Saved Instance State and Static variables CONNECTION_STATE_CHANGED和STATE_CHANGED之间的区别 - Difference between CONNECTION_STATE_CHANGED and STATE_CHANGED
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM