PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Returns information about the Android version used by the application.
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
// 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:
Android System Android (WINDEV Mobile): Android System
[ + ] This application is a tutorial example presenting some of the new features of WINDEV Mobile for Android.
The following system functions are used:
- NFC
- Multimedia control
- Brightness
- Volume
- WIFI
- Bluetooth
- Toast
- Progress Bar control
- 9-image mode
- Compass
- Accelerometer
- Camera control
- LED
- Vibrations
- Notifications
- Drawing functions
- Internet
Components
WEBDEV - Server code wd230java.dll
Android wd230android.jar
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment