}
else {
- app_info_get_name(app_info, &name);
+ app_info_get_label(app_info, &name);
if (name == NULL || g_strcmp0 (name, "(NULL)") == 0) {
LOCATION_APPMAN_LOG("name of application[%s] is NULL", package);
name = strdup (package);
char *package = NULL;
int ret = 0;
- ret = app_manager_get_package(pid, &package);
+ ret = app_manager_get_app_id(pid, &package);
if (ret != APP_MANAGER_ERROR_NONE) {
const char *pkg_name = g_getenv(LOCATION_APPMAN_PKG_NAME);
if (!pkg_name) {
ret = app_manager_get_app_info(appman->package, &app_info);
if (ret == APP_MANAGER_ERROR_NONE) {
- app_info_get_name(app_info, &name);
+ app_info_get_label(app_info, &name);
if (name != NULL) {
g_strlcpy(appman->appname, name, 64);
g_free(name);