using namespace Tizen::Base;
using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Runtime;
using namespace Tizen::Io;
_ConditionHandler::_ConditionHandler(const String& fileName, const String& types)
std::unique_ptr<char[]> pPackage(_StringConverter::CopyToCharArrayN(operation.GetAppId()));
int ret = aul_launch_app(pPackage.get(), pArg->GetBundle());
- SysTryLog(NID_APP, ret == AUL_R_OK, "Application launch failed : 0x%x", ret);
+ SysLog(NID_APP, "Application launch results: return(%d)", ret);
+
+ int retryCnt = 0;
+ while (ret < 0)
+ {
+ ret = aul_launch_app(pPackage.get(), pArg->GetBundle());
+ ++retryCnt;
+ SysLog(NID_APP, "Application launch results: return(%d), retryCnt(%d)", ret, retryCnt);
+
+ if (retryCnt > 2)
+ {
+ break;
+ }
+
+ Thread::Sleep(100);
+ }
#else
const result ret = _AppControlManager::GetInstance()->LaunchApp(operation.GetAppId(), pArg.get());
SysTryLog(NID_APP, !IsFailed(ret), "[%ls] LaunchApplication failed, app(%ls).", GetErrorMessage(ret), operation.GetAppId().GetPointer());