ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Contact functions (Lotus Notes or Android/iPhone/iPad)
  • Special cases
  • Application in the background: Specific case from Android 10
  • Required application feature
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Opens the form of a contact in edit mode in the device's native contacts application (Android, iPhone, iPad, Universal Windows).
Example
// Open the current contact's form in edit mode
// Global variables
gCurrentContact is Contact
...
// - Click on BTN_Modify
// Starts editing the contact
ContactEdit(gCurrentContact)
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.
Universal Windows 10 App
  • True if the user interface is displayed,
  • False otherwise.
<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.
  • Universal Windows 10 App ContactEdit is a non-blocking function.
  • 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

From 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.
Universal Windows 10 App

Required application feature

When this function is used, an application feature is declared in the application generation wizard.
Required feature: Contacts
This feature allows the applications to access the contacts.
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: 06/22/2023

Send a report | Local help