PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Creating and deploying an Android Widget
  • Specific features of Widgets
  • WLanguage functions specific to the Android Widgets
  • Functions for managing Widgets
  • Functions that can be used in the Widgets
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
Overview
The Widgets are small applications that can be displayed on the home screen of the phone or tablet. These Widgets are used to display information updated on a regular basis and they propose simple interactions with the user.
WINDEV Mobile allows you to create Widgets from your Android applications via the Widget windows.
Creating and deploying an Android Widget
The principle is straightforward:
  1. You create an Android project. See Developing applications for Android for more details.
  2. In your Android project, you create Widget windows. These windows contain all the features required by your Widget.
    Notes:
  3. Generate your Android application. See Generating an Android application for more details.
  4. Deploy the generated apk file.
  5. The Widgets found in the application will be displayed in the list of available Widgets and they can be installed on the desktop.

Specific features of Widgets

The Widgets of an application generated with WINDEV Mobile are run in a process different from the application itself.
However, all the Widgets of the same application are run in the same process and therefore they will share the same runtime context (global variables, HFSQL browse, ...).
The user has the ability to add on the home screen as many instances of the same Widget as necessary. Each one of these instances will correspond to the same window instance: the modifications performed on the window will be automatically applied to all the instances of the corresponding Widget.
WLanguage functions specific to the Android Widgets

Functions for managing Widgets

The following functions are used to manage the specific features of Android Widgets:
Versions 18 and later
InWidgetMode
New in version 18
InWidgetMode
InWidgetMode
Indicates whether the code is run in Android Widget mode.
Versions 18 and later
WidgetDisplay
New in version 18
WidgetDisplay
WidgetDisplay
Refreshes the display of a Widget window.
Versions 18 and later
WidgetRunApp
New in version 18
WidgetRunApp
WidgetRunApp
Starts the application to which a Widget belongs.

Functions that can be used in the Widgets

Most of the functions available for the Android applications are also available in Widget mode. To easily identify these functions, the icon appears in the bar of function platforms.
Minimum required version
  • Version 18
Comments
Click [Add] to post a comment