Application Group: Managing Groups
This tutorial demonstrates how you can define the application launch mode and manage your applications in a group.
Warm-up
Become familiar with the Application API basics by learning about:
-
Controlling the Launch Mode
Set the launch mode when calling an application through an app control.
Controlling the Launch Mode
To launch an application in a GROUP mode, you must learn how to define the application control object and launch the application:
- Define the application control object with the GROUP mode:
var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/view", null, "image/jpeg", null, [], "GROUP");
- Define an array with callback functions for the tizen.application.launchAppControl() method:
var appControlReplyCallback = { /* Callee sent a reply */ onsuccess: function(data) { console.log("onsuccess"); }, /* Callee returned failure */ onfailure: function() { console.log("onfailure"); } }
- Launch the application in the GROUP mode with the previously defined application control object:
tizen.application.launchAppControl(appControl, null, function() {console.log("launch application control succeed");}, function(e) {console.log("launch application control failed. reason: " + e.message);}, appControlReplyCallback);