PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
This content comes from an automatic translation.
  • Special cases
  • Application in the background: Android 10 specific case
  • Required application feature
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
Displays the list of contacts found on the device (Android, iPhone or iPad, Universal Windows). The user has the ability to select one of the contacts.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 18
Android Widget This function is now available in Android Widget mode.
iPhone/iPad This function is now available for iPhone/iPad applications.
Android Widget This function is now available in Android Widget mode.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versions 22 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 22
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
// Selects a contact and calls this contact
// (using the contact structure)
IF ContactSelect() = True THEN
tapiDialerCall(mContact.MobilePhone)
END
gCurrentContact is Contact
// Selects a contact and dials the phone numbers of this contact
// (using the contact variable)
IF ContactSelect(gCurrentContact) = True THEN
tel is Phone
FOR EACH tel OF gCurrentContact..PhoneNumber
IF tel..Type = phoneCellWork OR tel..Type = phoneWork THEN
tapiDialerCall(tel..Number)
RETURN
END
END
END
Syntax
Versions 17 and later

Selecting a contact and filling the Contact variable (from Android 2.0, iPhone or iPad, Universal Windows) Hide the details

<Result> = ContactSelect(<Contact>)
<Result>: Boolean
  • True if a contact was selected,
  • False otherwise. For more details about the error, use the ErrorInfo function.
<Contact>: Contact variable
Name of Contact variable that will be filled with the characteristics of the selected contact.
New in version 17

Selecting a contact and filling the Contact variable (from Android 2.0, iPhone or iPad, Universal Windows) Hide the details

<Result> = ContactSelect(<Contact>)
<Result>: Boolean
  • True if a contact was selected,
  • False otherwise. For more details about the error, use the ErrorInfo function.
<Contact>: Contact variable
Name of Contact variable that will be filled with the characteristics of the selected contact.

Selecting a contact and filling the Contact variable (from Android 2.0, iPhone or iPad, Universal Windows) Hide the details

<Result> = ContactSelect(<Contact>)
<Result>: Boolean
  • True if a contact was selected,
  • False otherwise. For more details about the error, use the ErrorInfo function.
<Contact>: Contact variable
Name of Contact variable that will be filled with the characteristics of the selected contact.
Warning
From version 17 (69), this syntax is kept for backward compatibility.

Selecting a contact and filling the Contact variable (before Android 2.0, iPhone or iPad, Universal Windows) Hide the details

<Result> = ContactSelect()
<Result>: Boolean
  • True if a contact was selected,
  • False otherwise. For more details about the error, use the ErrorInfo function.
Remarks

Special cases

  • If the user selects a contact, the Contact structure or the Contact variable is automatically filled with the information relative to the selected contact.
  • ContactSelect is a locking function until the user selects a contacts or cancels the selection window.
  • ContactSelect can be used in the emulator. It cannot be used in the simulator.
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.
ContactSelect 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.
ContactSelect 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.
ContactSelect 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.
Versions 22 and later
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of an application feature in the wizard for generating the application.
Required feature: Contacts
This feature allows the applications to access the contacts.
New in version 22
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of an application feature in the wizard for generating the application.
Required feature: Contacts
This feature allows the applications to access the contacts.
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of an application feature in the wizard for generating the application.
Required feature: Contacts
This feature allows the applications to access the contacts.
Business / UI classification : Business Logic
Component : wd250android.jar
Minimum version required
  • Version 16
This page is also available for…
Comments
Not working to select in Apple IOS 8.4 - 10.3.1?
This function is not working to select in IOS. The contact list comes up but you cannot select a contact.
riaanjvr
23 Jun. 2017