extern void font_size_set();
extern int setting_set_i18n(char* pkgname, char* localedir);
+extern void app_launcher(char* pkg_name);
#endif /* __SETTING_COMMON_GENERAL_FUNC_H__ */
#endif
}
+
+void app_launcher(char* pkg_name)
+{
+ service_h service;
+ service_create(&service);
+ service_set_operation(service, SERVICE_OPERATION_DEFAULT);
+ service_set_package(service, pkg_name);
+ int launch_ret = service_send_launch_request(service, NULL, NULL);
+ SETTING_TRACE("after app_service_create - %s : %d ", pkg_name, launch_ret);
+ if (launch_ret == SERVICE_ERROR_NONE)
+ {
+ // on success
+ SETTING_TRACE("on success");
+
+ } else {
+ // on error
+ SETTING_TRACE("on error");
+ }
+ service_destroy(service);
+ service = NULL;
+}
+
SETTING_TRACE_BEGIN;
setting_retm_if(app_name == NULL, "app_name is NULL");
+ #if 0
if(aul_app_is_running((const char *)app_name)) {
SETTING_TRACE_DEBUG("%s is already launched.", app_name);
aul_open_app((const char *)app_name);
SETTING_TRACE_DEBUG("%s will be launched. ", app_name);
aul_launch_app((const char *)app_name, NULL);
}
+ #else
+ app_launcher(app_name);
+ #endif
}
static void __setting_storage_main_Gendial_mouse_up_cb(void *data, Evas_Object *obj, void *event_info)
{
if (ad->data_network) setting_disable_genlist_item(ad->data_network->item);
if (ad->data_wifi) setting_disable_genlist_item(ad->data_wifi->item);
- if (ad->data_mobileApp) setting_disable_genlist_item(ad->data_mobileApp->item);
+ //if (ad->data_mobileApp) setting_disable_genlist_item(ad->data_mobileApp->item);
}
else
{
if (ad->data_network) setting_enable_genlist_item(ad->data_network->item);
if (ad->data_wifi) setting_enable_genlist_item(ad->data_wifi->item);
- if (ad->data_mobileApp) setting_enable_genlist_item(ad->data_mobileApp->item);
+ //if (ad->data_mobileApp) setting_enable_genlist_item(ad->data_mobileApp->item);
}
} else if (!safeStrCmp(vconf_name, VCONFKEY_BT_STATUS)) {
{
if (ad->data_network) setting_disable_genlist_item(ad->data_network->item);
if (ad->data_wifi) setting_disable_genlist_item(ad->data_wifi->item);
- if (ad->data_mobileApp) setting_disable_genlist_item(ad->data_mobileApp->item);
+ //if (ad->data_mobileApp) setting_disable_genlist_item(ad->data_mobileApp->item);
}
}