Exchange Data Between Applications
With increasing complexity of the project, it is important to separate an application functionality into smaller and independent components. The advantages of this are described below:
- Create reusable code.
- Improved fault tolerance.
- Easier maintenance.
- Improved code readability.
For this purpose, Tizen .NET API introduces a few mechanisms for developers to implement communication process between processes:
An application control (app control) is a way of sharing an application’s functionality. Using another application’s features through application controls reduces the time and effort needed to develop your application.
You can use operations such as calling, web browsing, and playing media items in your application, that are exported by other applications. This mechanism allows you to conveniently launch other applications whose functionalities you need in your application. If you need to use functionality from another application, launching an application control allows you to request the system to launch that application according to your requirements. You can launch applications based on your immediate needs - you do not need to know their identifiers or specifications. You can use application controls by creating an application control request. The request allows you to launch other applications to use their functionalities.
Data control allows you to read and modify data stored and provided by another application, and monitor changes in that data. The application storing and controlling the data is called a DataControl provider application. The application using the data is called a DataControl consumer application. A single DataControl provider can serve multiple DataControl consumers.
Events broadcast and subscription
An event is a broadcast message delivered by the application to all other applications that want to listen. A set of specific platform events provided by the Tizen operating system are as follows:
||When the charger state is
||When the USB state is
||When the earjack state is
||When the Wi-Fi state is
Events used to launch app are called as
Message port provides an encrypted communication using the author’s certificate. If data exchanged between two applications should be secured, you could use the Message Port API. A secure connection could be established only for applications using the same certificates. The following picture shows possible trusted data exchange between two apps. A possible connection is marked using green color. Communication between apps using
A certificate and
B certificate is not allowed.
- Tizen 4.0 and Higher