ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Date and time functions
  • Application in the background: Specific case from Android 10
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
DatePicker (Function)
In french: DateSélecteur
Opens the system date picker.
Remark: To select a date via the date picker, we recommend that you use the "Date Picker" input mask for the "Date" edit control. This input mask is also available for iPhone/iPad applications.
Date picker for Android system
Example
d is Date = DatePicker()
InitialDate is Date = "20170101"
MyDate is Date
MyDate = DatePicker(InitialDate, "Start date")
Syntax
<Result> = DatePicker([<Initial date> [, <Title>]])
<Result>: Date or Character string
  • Date selected in the picker,
  • Empty string ("") if the selection was canceled by the user.
<Initial date>: Date or optional character string
Date displayed when opening up the picker. If this date is not specified the picker will display the current date.
<Title>: Optional character string
Title that must be displayed in the picker. If this parameter is not specified, the title will be the date displayed in the picker in text format.
Remarks
AndroidAndroid Widget

Application in the background: Specific case from Android 10

From Android 10, it is no longer possible to open a window when the application is in the background.
DatePicker can open a window. If this function is used while the application is in the background, a fatal error will occur.
Tips:
  • It is possible to determine if the application is in the background using InBackgroundMode.
  • If an application needs to interact with the user while it is in the background, the solution is to display a notification (via the Notification type). The application will be brought back to the foreground when the notification is clicked, if the ActivateApplication property is set to True. You can also open a window from the procedure passed to the ActionClick property.
Business / UI classification: UI Code
Component: wd290android.jar
Minimum version required
  • Version 17
Comments
Click [Add] to post a comment

Last update: 11/20/2023

Send a report | Local help