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:

Application control

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.

App Control

Data control

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.

Data Control

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:

You can scroll this table.
Name Condition
SystemEvents.BatteryChargerStatus.EventName When the charger state is SystemEvents.BatteryChargerStatus.StatusValueConnected.
SystemEvents.UsbStatus.EventName When the USB state is SystemEvents.UsbStatus.StatusValueConnected.
SystemEvents.EarjackStatus.EventName When the earjack state is SystemEvents.EarjackStatus.StatusValueConnected.
SystemEvents.IncomingMsg.EventName When the SystemEvents.IncomingMsg.TypeKey and SystemEvents.IncomingMsg.IdKey exist.
SystemEvents.WifiState.EventName When the Wi-Fi state is SystemEvents.WifiState.StateValueConnected.

Events used to launch app are called as launch events.

Event Broadcast

Message port

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.

Message Port

  • Dependencies
    • Tizen 4.0 and Higher
Widget Application
Next Application Control
Submit your feedback to GitHub