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 a contact's current file in the device's native contact management application (Android, iPhone or iPad).
Example
// Ouvre en édition la fiche du contact en cours
// Variables globales
gContactEnCours is Contact
... 
// - Clic sur BTN_Modifier
// Lance l'édition du contact
ContactEdit(gContactEnCours)
Syntax

Opening a contact form in edit mode Hide the details

<Result> = ContactEdit(<Contact>)
<Result>: Boolean
  • True if the contact was modified,
  • False otherwise. If an error occurs, the ErrorOccurred variable is set to True. To get more details on the error, use ErrorInfo.
<Contact>: Contact variable
Name of the Contact variable corresponding to the contact whose form will be opened. This contact must exist in the database of contacts found on the device.
Remarks

Special cases

  • AndroidAndroid Widget iPhone/iPad ContactEdit is a blocking function as long as the contact form is not closed by the user.
  • To update the Contact variable with the details of the contact that was previously edited, use ContactRead.
  • ContactEdit 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.
ContactEdit 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.
Related Examples:
WM Managing Contacts Cross-platform examples (WINDEV Mobile): WM Managing Contacts
[ + ] This example presents the management of contacts for Android et iOS.
It is used o:
- list the contacts found on the phone
- call the contacts
- send SMSs to the contacts
- ...
Business / UI classification: Business Logic
Component: wd300android.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