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 / Phone functions
  • Special cases
  • Background application: Specific to Android 10 and higher
  • Required permissions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
tapiDialerCall (Function)
In french: telDialerCompose
Opens the default telephony application (dialer) found on the phone and dials the specified number.
Example
tapiDialerCall("0612345678")
Syntax
<Result> = tapiDialerCall(<Phone number>)
<Result>: Boolean
  • True if the telephony application was successfully started,
  • False otherwise. If an error occurs, you can get more details on the error with ErrorInfo.
<Phone number>: Character string
Phone number to dial.
The function will return False if this parameter corresponds to an empty string ("").
Please note: the number must not contain spaces.
Remarks

Special cases

  • AndroidAndroid Widget To display the dial screen without dialing a number, use tapiDialerDisplay.
  • It is not possible to automatically call emergency numbers
  • No USSD code can be dialed.
AndroidAndroid Widget

Background application: Specific to Android 10 and higher

Starting with Android 10, it is no longer possible to open a window when the application is in the background.
tapiDialerCall 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.
AndroidAndroid Widget

Required permissions

This function changes the permissions required by the application.
Permission required: CALL_PHONE.
Component: wd300android.aar
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/30/2024

Send a report | Local help