2 // This file contains the Tizen application entry point.
6 using namespace Tizen::Base;
7 using namespace Tizen::Base::Collection;
16 // The entry function of Tizen application called by the operating system.
19 OspMain(int argc, char* pArgv[])
21 AppLog("Application started.");
22 ArrayList args(SingleObjectDeleter);
24 for (int i = 0; i < argc; i++)
26 args.Add(new (std::nothrow) String(pArgv[i]));
29 result r = Tizen::App::UiApp::Execute(CallApp::CreateInstance, &args);
30 TryLog(r == E_SUCCESS, "[%s] Application execution failed", GetErrorMessage(r));
31 AppLog("Application finished.");
33 return static_cast<int>(r);