|
|
|
|
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. Remark: 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: | | 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 value): Enables the Bluetooth on the device.
- False: Disables the Bluetooth on the device.
Remarks Required permissions The call to this function modifies the permissions required by the application. Required permissions: - BLUETOOTH: this permission allows the applications to connect to the Bluetooth services.
- BLUETOOTH_ADMIN: this permission allows the applications to discover and connect the Bluetooth services.
Component: wd290android.jar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|