Mobile Web Wearable Web

Application Group

You can define the application launch mode and group your applications into entities that can be managed together.

The main application group features include:

  • Defining the application launch mode

    You can set the application launch mode in the config.xml file (in mobile and wearable applications) with one of the following values:

    • The SINGLE launch mode means that the application is launched as a main application (in a new group).
    • The GROUP launch mode means that the application can be launched as a sub application belonging to the same group as the caller application which is causing the application to be launched.

    Additionally, if the launch mode is not set to SINGLE in the config.xml file and the application is launched by the launchAppControl() function (in mobile and wearable applications) with the ApplicationControl object (in mobile and wearable applications), the launchMode property of this object overrides the launch mode of the called application. If the launch mode in the config.xml file is set to SINGLE, the value of the ApplicationControl.launchMode property is ignored and the sub application is always called in the SINGLE mode.

  • Managing the application group

    Applications in a same group act as if they are in 1 stack. For example, if an application A wants to send an email using an email application B, the application A can launch the email application B, making the email application B a sub application in the same group as the application A. When both applications are running, and the user presses the home button, both applications are hidden. When the user later resumes the caller application (application A), the email application B is shown on top of the caller application.

    If an application is launched in a group, it can be terminated by the main (first) application in the group. If the main application is terminated or killed, the sub applications in the group are terminated automatically (they can be terminated by the framework even if they are hidden).

    Figure: Group behavior

    Group behavior

Go to top