Android Question BluetoothAdmin Disable return value

Discussion in 'Android Questions' started by SteveTerrell, Mar 11, 2015.

  1. SteveTerrell

    SteveTerrell Active Member Licensed User

    On my Nexus 7 the following line of code
    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.
  2. Erel

    Erel Administrator Staff Member Licensed User

    It is a mistake in the documentation. I fixed it.

    Note that you can use IsEnabled to get the current state.
    SteveTerrell likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice