ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / Contact functions (Lotus Notes or Android/iPhone/iPad)
  • Special cases
  • Application in the background: Specific case from Android 10
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Opens the form of a contact in the native application for contact management of the device (Android, iPhone or iPad).
Example
// Procédure permettant d'afficher le contact sélectionné dans un champ Zone répétée
PROCEDURE AfficheContact(nNumContact is int)
tContact is Contact
IF nNumContact <= gtabContacts.Occurrence THEN
	tContact = gtabContacts[nNumContact]
	// Initialise le contact
	VariableReset(gContactEnCours)
	gContactEnCours = tContact
	ContactDisplay(gContactEnCours)
END
Syntax

Displaying a contact from a Contact variable Hide the details

<Result> = ContactDisplay(<Contact>)
<Result>: Boolean
  • True if the form of the contact was opened,
  • False otherwise. To get more details on the error, use ErrorInfo.
<Contact>: Contact variable
Name of the Contact variable corresponding to the contact to display. This contact must exist in the database of contacts.
Remarks

Special cases

  • ContactDisplay gives control back to the application once the contact form has been displayed.
  • ContactDisplay can be used in the emulator. It cannot be used in the simulator.
AndroidAndroid Widget

Application in the background: Specific case from Android 10

Starting with Android 10, it is no longer possible to open a window when the application is in the background.
ContactDisplay 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.
Component: wdandroid.aar
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/25/2025

Send a report | Local help