ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Mobile specific functions / Widget functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Starts the application to which a widget belongs.
Example
// Lance l'application Android sur la fenêtre de recherche en lui passant en paramètre
// la valeur recherchée
WidgetRunApp(FEN_Recherche, "valeur")
Syntax

Starting the associated Android application Hide the details

<Result> = WidgetRunApp()
<Result>: Boolean
  • True if the Android application containing the current Widget window was started,
  • False otherwise.

Starting the application while specifying the window to open Hide the details

<Result> = WidgetRunApp([<Window name> [, <Parameter 1> [... [, <Parameter N>]]]])
<Result>: Boolean
  • True if the Android application containing the current Widget window was started,
  • False otherwise.
<Window name>: Optional character string
Name of the application window to open when starting the application.
<Parameter 1>: Type of value sent to the window (optional)
First parameter that will be passed to the "Global declarations" event of the window to open. This parameter is passed by reference and is considered as a global variable to the specified window.
Note: Only simple types can be passed to the window (string, integer, Boolean, etc.)
<Parameter N>: Type of value sent to the window (optional)
Nth parameter that must be passed to the "Global declarations" event of the window to open. This parameter is passed by reference and is considered as a global variable to the specified window.
Note: Only simple types can be passed to the window (string, integer, Boolean, etc.).
Remarks
  • WidgetRunApp can only be used in Widget mode.
  • The application will be started in a process different from the one in which the widget is run.
Component: wd300android.jar
Minimum version required
  • Version 18
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help