2 * This file contains the Tizen application entry point.
4 #include "$(projectName).h"
6 using namespace Osp::Base;
7 using namespace Osp::Base::Collection;
14 _EXPORT_ int OspMain(int argc, char *pArgv[]);
16 extern void start_profile (void);
17 extern void end_profile (void);
19 #define start_profile()
25 * The entry function of Tizen application called by the operating system.
28 OspMain(int argc, char *pArgv[])
32 AppLog("Application started.");
33 ArrayList* pArgs = new ArrayList();
35 for (int i = 0; i < argc; i++)
37 pArgs->Add(*(new String(pArgv[i])));
41 r = Osp::App::UiApp::Execute($(projectName)App::CreateInstance, pArgs);
44 AppLogException("Application execution failed-[%s].", GetErrorMessage(r));
49 pArgs->RemoveAll(true);
51 AppLog("Application finished.");
53 return static_cast<int>(r);