PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Elements taken into account in the SMS structure
  • Error cases
  • Application in the background: Android 10 specific case
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
SMSRunApp (Function)
In french: SMSLanceAppli
Starts the native application for sending SMSs found on the device (Android or iPhone/iPad). The content and the recipients of the SMS are initialized from the information specified in the SMS structure of WLanguage.
Caution: The SMS is not sent. Only the controls of the application for sending SMSs are initialized.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
SMS.Number = "0610203040"
SMS.Message = "I am sending SMSs with WINDEV Mobile!"
SMSRunApp()
Syntax
SMSRunApp()
Remarks

Elements taken into account in the SMS structure

  • iPhone/iPadUniversal Windows 10 App Only the SMS.Number and SMS.Message variables are taken into account.
  • Android Only the following variables are taken into account:
    • SMS.Number,
    • SMS.Message,
    • Versions 25 and later
      SMS.Attachment.
      New in version 25
      SMS.Attachment.
      SMS.Attachment.
    • SMS.NumberType and SMS.CountryPrefix are taken into account.
For more details, consult the SMS structure of WLanguage.

Error cases

If no native application for sending SMSs was found on the device, the ErrorOccurred variable will be set to True after the call to the function. To get the details of the error, use ErrorInfo.
Versions 25 and later
AndroidAndroid Widget

Application in the background: Android 10 specific case

From Android 10, it is no longer possible to open a window when the application is in the background.
SMSRunApp 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). When the notification is clicked on, the application will be brought back to the foreground if ..ActivateApplication is set to True. It is also possible to open a window from the procedure passed to ..ActionClick.
New in version 25
AndroidAndroid Widget

Application in the background: Android 10 specific case

From Android 10, it is no longer possible to open a window when the application is in the background.
SMSRunApp 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). When the notification is clicked on, the application will be brought back to the foreground if ..ActivateApplication is set to True. It is also possible to open a window from the procedure passed to ..ActionClick.
AndroidAndroid Widget

Application in the background: Android 10 specific case

From Android 10, it is no longer possible to open a window when the application is in the background.
SMSRunApp 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). When the notification is clicked on, the application will be brought back to the foreground if ..ActivateApplication is set to True. It is also possible to open a window from the procedure passed to ..ActionClick.
Related Examples:
iOS System iPhone/iPad (WINDEV Mobile): iOS System
[ + ] This application is an example presenting the use of various features.
The features are as follows:
- Playing videos
- Trace in the logs
- Slider
- Popup control
- Hourglass
...
Component : wd250android.jar
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment