语言

Menu
Sites
Language
How to create service in Tizen?

Hi to all! =)

How to create service in Tizen? 

For example, in Android there are onCreate() and onDestroy() methods http://developer.android.com/reference/android/app/Service.html

is the analogs for this issue in Tizen?

响应

1 回复
Chintan Gandhi

Hi John,

Service in android can be of any type. Service that runs in background indefinitely or service that starts once the application has moved to background.

In Tizen there are two application class call back functions namely OnBackground and OnForeground that can be used for the same. Also you can create a timer and on expiry of which can execute particular tasks by calling OnTimerExpired function that will run indefinite number of times.

for more info:

https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.apireference%2FclassTizen_1_1App_1_1UiApp.html

https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.apireference%2FclassTizen_1_1Base_1_1Runtime_1_1ITimerEventListener.html

 

Thanks.