PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Required permissions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
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.
Notes:
  • The Bluetooth functions are not available in the Android emulator.
  • The management of Bluetooth is available from Android 2.0.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Android Widget This function is now available in Android Widget mode.
Example
IF BTStatus() = btDisabled THEN
        BTActivate(True)
END
Syntax
<Result> = BTActivate([<Activation of Bluetooth>])
<Result>: Integer constant
Activation status of Bluetooth after the modification. The possible values are as follows:
btEnabledThe Bluetooth is enabled on the device.
btActivationInProgressThe Bluetooth is being enabled on the device.
btDeactivationInProgressThe Bluetooth is being disabled on the device.
btDisabledThe Bluetooth is disabled on the device.
btErrorThe activation status of Bluetooth was not 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.
Components
Android wd230android.jar
Minimum required version
  • Version 16
Comments
Click [Add] to post a comment