#include <app_control.h>
#include <appsvc.h>
#include <aul_svc.h>
+#include <aul_widget.h>
#include <bundle_cpp.h>
string pid = data.GetString(AUL_K_PID);
string is_faulted = data.GetString(AUL_K_IS_FAULT);
LOGW("WatchBase(%s)(%s) DEAD", appid.c_str(), pid.c_str());
+ aul_widget_write_log(LOG_TAG, "[%s:%d] %s [%s]",
+ __FUNCTION__, __LINE__, appid.c_str(), pid.c_str());
list<shared_ptr<WatchBase>>::iterator it;
for (it = holder->impl_->stack_.begin(); it != holder->impl_->stack_.end(); ++it) {
if ((*it)->GetAppId() == appid &&
holder->OnDead(**it);
holder->impl_->stack_.erase(it);
LOGW("REMOVE DEAD WATCH (%s)(%s)", appid.c_str(), pid.c_str());
+ aul_widget_write_log(LOG_TAG, "[%s:%d] %s [%s], remove dead done",
+ __FUNCTION__, __LINE__, appid.c_str(), pid.c_str());
break;
}
}
}
holder->OnLaunched(*holder->GetCurrent());
LOGI("LAUNCH DONE (%s)", viewer_appid.c_str());
+ aul_widget_write_log(LOG_TAG, "[%s:%d] %s, launch done",
+ __FUNCTION__, __LINE__, watch_appid.c_str());
return 0;
}