#include "stc-popup-ui.h"
#include "stc-popup-util.h"
+#define DATA_USAGE_APPID "org.tizen.setting"
+
static void win_delete_request_cb(void *data, Evas_Object *obj,
void *event_info)
{
elm_exit();
}
+static void _launch_app_control(const char *app_id)
+{
+ int ret = 0;
+ app_control_h app_control = NULL;
+
+ if (app_id == NULL)
+ return;
+
+ ret = app_control_create(&app_control);
+ if (ret != APP_CONTROL_ERROR_NONE)
+ goto error;
+
+ ret = app_control_set_app_id(app_control, app_id);
+ if (ret != APP_CONTROL_ERROR_NONE)
+ goto error;
+
+ ret = app_control_send_launch_request(app_control, NULL, NULL);
+ if (ret == APP_CONTROL_ERROR_NONE)
+ STC_LOGD("Successfully send launch request");
+ else
+ STC_LOGE("Failed to send launch request");
+
+error:
+ if (app_control)
+ app_control_destroy(app_control);
+
+ return;
+}
+
static void _response_button2_cb(void *data, Evas_Object *obj, void *event_info)
{
Evas_Object *popup = (Evas_Object *)data;
+ _launch_app_control(DATA_USAGE_APPID);
+
if (popup)
evas_object_del(popup);
if (obj)