|
|
|
|
|
BTActivate (Function) In french: BTActive Enables or disables the management of Bluetooth on the device. To find out the activation status of Bluetooth on the device or to be notified when the status changes, use BTStatus. Note: Bluetooth functions are not available in the Android emulator. IF BTStatus() = btDisabled THEN
BTActivate(True)
END
Syntax
<Result> = BTActivate([<Activation of Bluetooth>])
<Result>: Integer constant Bluetooth activation status after the modification. The possible values are as follows: | | btActivationInProgress | The Bluetooth is being enabled on the device. | btDeactivationInProgress | The Bluetooth is being disabled on the device. | btDisabled | The Bluetooth is disabled on the device. | btEnabled | The Bluetooth is enabled on the device. | btError | The Bluetooth activation status could not be retrieved. |
<Activation of Bluetooth>: Optional boolean New activation status of Bluetooth: - True (default): Enables Bluetooth on the device.
- False Disables Bluetooth on the device.
Remarks Required permissions This function changes the permissions required by the application. Required permissions: - BLUETOOTH: this permission allows applications to connect to Bluetooth services.
- BLUETOOTH_ADMIN: this permission enables applications to discover and connect Bluetooth devices.
Component: wd300android.jar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|