Tizen开发(6) - Service Application Fundamentals

一.继承ServiceApp class

class MyApp:
   public Tizen::App::ServiceApp

二.创建application entry point

int
OspMain(int argc, char* pArgv[])
{
   r = Tizen::App::ServiceApp::Execute(MyApp::CreateInstance,pArgs);
}

// Declare the method
static Tizen::App::ServiceApp* MyApp::CreateInstance(void);
 
// Define the method
ServiceApp*
MyApp::CreateInstance(void)
{
   return new MyApp;
}

三.管理Service application life-cycle


你可能感兴趣的:(Tizen开发(6) - Service Application Fundamentals)