SteveTerrell Active Member Licensed User Longtime User Mar 11, 2015 #1 On my Nexus 7 the following line of code Code: Copy Log("Disable="&btAdapter.Disable) Logs "True" both when the adapter is disabled (and has been for some time) and when it is enabled. The docs say: Disable As Boolean Turns off the Bluetooth adpater. The adapter will not be immediately disabled. You should use the StateChanged event to monitor the adapter. This method returns False if the adapter cannot be disabled or is already disabled. Is that an error in my Nexus or the docs? PS The spell checker spotted that adpater should be adapter in the docs.
On my Nexus 7 the following line of code Code: Copy Log("Disable="&btAdapter.Disable) Logs "True" both when the adapter is disabled (and has been for some time) and when it is enabled. The docs say: Disable As Boolean Turns off the Bluetooth adpater. The adapter will not be immediately disabled. You should use the StateChanged event to monitor the adapter. This method returns False if the adapter cannot be disabled or is already disabled. Is that an error in my Nexus or the docs? PS The spell checker spotted that adpater should be adapter in the docs.
Erel B4X founder Staff member Licensed User Longtime User Mar 11, 2015 #2 It is a mistake in the documentation. I fixed it. Note that you can use IsEnabled to get the current state. Upvote 0
It is a mistake in the documentation. I fixed it. Note that you can use IsEnabled to get the current state.