Contact
Introduction
This sample shows how to use the mobile phone contact function.
In this example, we'll use the Tabs component to set the overall application layout, and use the List component to set the page layout of the home page, and use the AlphabetIndexer component to set the index bar.
Usage
-
Touch + to go to the page for adding a contact. Enter the contact information, and then tap √ to confirm and return to the home page.
-
Touch the contact list to view the detailed contact information. You can also edit or delete the contact information as needed.
-
Enter a number or email address in the search box to search for a contact.
Display Effect

Required Permissions
Reading of contact information: ohos.permission.READ_CONTACTS
Adding, removing, and changing contact information: ohos.permission.WRITE_CONTACTS
Dependency
N/A
Constraints
-
This sample can only be run on standard-system devices that use the Rockchip RK3568 chip.
-
DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100) must be used.
-
ohos.permission.READ_CONTACTS and ohos.permission.WRITE_CONTACTS are permissions of the system_basic level, which can be viewed from the permission list (https://gitee.com/openharmony/docs/blob/master/en/application-dev/security/permission-list.md). You need to manually configure the signature of the corresponding permission level by following instructions in Having Your App Automatically Signed.