The application data on a device, such as the Contacts, short message service (SMS), and Gallery data, always needs to be shared with other applications. However, certain data, such as the accounts and passwords, cannot be shared. Certain data, such as SMS messages, can be accessed but not modified by other applications. The **DataShare** module provides a secure and easy-to-use mechanism for sharing data of an application with other applications on the same device.
The application data on a device, such as the Contacts, short message service (SMS), and Gallery data, always needs to be shared with other applications. However, certain data, such as the accounts and passwords, cannot be shared. Certain data, such as SMS messages, can be accessed but not modified by other applications. The **DataShare** module provides a secure and easy-to-use mechanism for sharing data of an application with other applications on the same device.
...
@@ -18,7 +19,6 @@ Before developing cross-application data sharing on a device, understand the fol
...
@@ -18,7 +19,6 @@ Before developing cross-application data sharing on a device, understand the fol
-**Predicates**: an object that specifies the conditions for updating, deleting, or querying data in a database.
-**Predicates**: an object that specifies the conditions for updating, deleting, or querying data in a database.
## Implementation
## Implementation
The data provider can directly use **DataShare** to share data with other applications without complex encapsulation. The data consumer only needs to use a set of APIs to access the data, because the **DataShare** access mode does not vary with the data provisioning mode. This greatly reduces the learning time and development difficulty.
The data provider can directly use **DataShare** to share data with other applications without complex encapsulation. The data consumer only needs to use a set of APIs to access the data, because the **DataShare** access mode does not vary with the data provisioning mode. This greatly reduces the learning time and development difficulty.
...
@@ -37,7 +37,6 @@ The cross-application data sharing can be implemented in either of the following
...
@@ -37,7 +37,6 @@ The cross-application data sharing can be implemented in either of the following
This method is recommended when the cross-application data access involves only the operations for adding, deleting, modifying, and querying data in databases.
This method is recommended when the cross-application data access involves only the operations for adding, deleting, modifying, and querying data in databases.
## Constraints
## Constraints
-**DataShare** is subject to the limitations on the database used by the data provider. The supported data models, length of the keys and values, and maximum number of databases that can be accessed at a time by each application vary with the database in use.
-**DataShare** is subject to the limitations on the database used by the data provider. The supported data models, length of the keys and values, and maximum number of databases that can be accessed at a time by each application vary with the database in use.