Name of ContactSource variable corresponding to the source or to the account into which the contact will be added. If this parameter is not specified, the contact will be associated with no account.

Versions 16 and later

Warning
From version 17 (69), this syntax is kept for backward compatibility.

New in version 16

Warning
From version 17 (69), this syntax is kept for backward compatibility.

Warning
From version 17 (69), this syntax is kept for backward compatibility.

Adding a contact into the list of contacts on the device (before Android 2.0, iPhone or iPad, Universal Windows) Hide the details

<Result> = ContactAdd(<Type of Contact>)

<Result>: Boolean

True if the addition was performed,

False otherwise. To find out the error details, use ErrorInfo associated with the errMessage constant.

<Type of Contact>: Integer constant

Type of contact to add. By default, this parameter corresponds to the contactPhone constant.

Remarks

Special case

To display the window for contact creation of native application for contact management found on the device, use ContactCreate.

Versions 16 and later

Required permissions

The call to this function modifies the permissions required by the application.Required permission: WRITE_CONTACTSThis permission allows the application to write (without reading) the data of the user contacts.

New in version 16

Required permissions

The call to this function modifies the permissions required by the application.Required permission: WRITE_CONTACTSThis permission allows the application to write (without reading) the data of the user contacts.

Required permissions

The call to this function modifies the permissions required by the application.Required permission: WRITE_CONTACTSThis permission allows the application to write (without reading) the data of the user contacts.

Versions 22 and later

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

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.

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.

Versions 16 and later

Syntax that is using the Contact structure (before Android 2.0)

Only the following members of the Contact structure will be taken into account when adding the contact:

mContact.Name The name of the contact on the device will be built from the mContact.Name and mContact.FirstName members.

mContact.FirstNameThe name of the contact on the device will be built from the mContact.Name and mContact.FirstName members.

mContact.Notes

mContact.HomeAddressThe home address of the contact on the device will be built from the mContact.HomeAddress, mContact.HomeCity, mContact.HomeZip, mContact.HomeState and mContact.HomeCountry members.

mContact.HomeCity

mContact.HomeZipCode

mContact.HomeState

mContact.HomeCountry

mContact.HomePhone

mContact.HomeFax

mContact.MobilePhone

mContact.Company

mContact.Department

mContact.OfficeAddressThe business address of the contact on the device will be built from the mContact.OfficeAddress, mContact.OfficeCity, mContact.OfficeZip, mContact.OfficeState and mContact.OfficeCountry members.

mContact.OfficeCity

mContact.OfficeZipCode

mContact.OfficeState

mContact.OfficeCountry

mContact.OfficePhone

mContact.OfficeFax

mContact.OfficeMobilePhone

mContact.OfficePager

mContact.Email

New in version 16

Syntax that is using the Contact structure (before Android 2.0)

Only the following members of the Contact structure will be taken into account when adding the contact:

mContact.Name The name of the contact on the device will be built from the mContact.Name and mContact.FirstName members.

mContact.FirstNameThe name of the contact on the device will be built from the mContact.Name and mContact.FirstName members.

mContact.Notes

mContact.HomeAddressThe home address of the contact on the device will be built from the mContact.HomeAddress, mContact.HomeCity, mContact.HomeZip, mContact.HomeState and mContact.HomeCountry members.

mContact.HomeCity

mContact.HomeZipCode

mContact.HomeState

mContact.HomeCountry

mContact.HomePhone

mContact.HomeFax

mContact.MobilePhone

mContact.Company

mContact.Department

mContact.OfficeAddressThe business address of the contact on the device will be built from the mContact.OfficeAddress, mContact.OfficeCity, mContact.OfficeZip, mContact.OfficeState and mContact.OfficeCountry members.

mContact.OfficeCity

mContact.OfficeZipCode

mContact.OfficeState

mContact.OfficeCountry

mContact.OfficePhone

mContact.OfficeFax

mContact.OfficeMobilePhone

mContact.OfficePager

mContact.Email

Syntax that is using the Contact structure (before Android 2.0)

Only the following members of the Contact structure will be taken into account when adding the contact:

mContact.Name The name of the contact on the device will be built from the mContact.Name and mContact.FirstName members.

mContact.FirstNameThe name of the contact on the device will be built from the mContact.Name and mContact.FirstName members.

mContact.Notes

mContact.HomeAddressThe home address of the contact on the device will be built from the mContact.HomeAddress, mContact.HomeCity, mContact.HomeZip, mContact.HomeState and mContact.HomeCountry members.

mContact.HomeCity

mContact.HomeZipCode

mContact.HomeState

mContact.HomeCountry

mContact.HomePhone

mContact.HomeFax

mContact.MobilePhone

mContact.Company

mContact.Department

mContact.OfficeAddressThe business address of the contact on the device will be built from the mContact.OfficeAddress, mContact.OfficeCity, mContact.OfficeZip, mContact.OfficeState and mContact.OfficeCountry members.

mContact.OfficeCity

mContact.OfficeZipCode

mContact.OfficeState

mContact.OfficeCountry

mContact.OfficePhone

mContact.OfficeFax

mContact.OfficeMobilePhone

mContact.OfficePager

mContact.Email

Related Examples:

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- ...