+ int ret = 0;
+ app_control_h app_control_handle = NULL;
+ app_context_h app_context_handle = NULL;
+
+ ret = app_control_create(&app_control_handle);
+ if (ret != APP_CONTROL_ERROR_NONE) {
+ _E("Failed to create appcontrol");
+ return -1;
+ }
+
+ ret = app_control_set_operation(app_control_handle, APP_CONTROL_OPERATION_DEFAULT);
+ if (ret != APP_CONTROL_ERROR_NONE) {
+ _E("Failed to set operation to appcontrol");
+ app_control_destroy(app_control_handle);
+ return -1;
+ }
+
+ if (key && value) {
+ _D("key(%s), value(%s)", key, value);
+ ret = app_control_add_extra_data(app_control_handle, key, value);
+ if (ret != APP_CONTROL_ERROR_NONE) {
+ _E("Failed to add extra data to appcontrol");
+ app_control_destroy(app_control_handle);