ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / System functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Returns information about the Android version used by the application.
Example
// The Bluetooth functions are available
// from the Api Level 5 (Android "Eclair" 2.0)
IF Val(SysAndroidVersion(sysVersionApiLevel)) >= 5 THEN
// Enables the bluetooth on the device
BTActivate(True)
END
Syntax
<Result> = SysAndroidVersion([<Type of information>])
<Result>: Character string
  • Requested information about the Android version.
  • Empty string ("") if an error occurred.
<Type of information>: Optional Integer constant
Indicates the requested information:
sysVersionApiLevelApi Level of Android.
sysVersionNumberVersion number of Android.
For example: "1.5", "2.2", "2.3.3", ...).
sysVersionPlatformName of the major version of Android:
  • "Cupcake"
  • "Donut"
  • "Lightning"
  • "Froyo"
  • "Gingerbread"
  • "Honeycomb"
  • "Ice Cream Sandwich"
If the name of the version is not known, <Result> corresponds to an empty string ("").
Related Examples:
WM System Cross-platform examples (WINDEV Mobile): WM System
[ + ] This application is an example of some of the features of WINDEV Mobile available for Android/iOS.
The following system functions are used:
- NFC
- Multimedia control
- Brightness
- Volume
- Wi-Fi
- Bluetooth
- Toast
- Compass
- Accelerometer
- Camera control
- LED
- Vibration
- Notifications
- Drawing functions
- Internet
Component: wd290android.aar
Minimum version required
  • Version 17
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help