语言

Menu
Sites
Language
Relaunch application automatic when be Terminated

I have application need alway running on device. But i don't know how to do that. OR relaunch automatically when be terminated.:(

How can i do that?

编辑者为: Tung 05 11月, 2013

响应

7 回复
hgw7

You can create a 'Service' application which will always be running in the background. Please refer -> https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.appprogramming%2Fhtml%2Fguide%2Fapp%2Fservice_app_fundamentals.htm

You can launch application at a later time by using RegisterAppLaunch() method provided in Tizen::App::AppManager Class. Writing the condition in the OnTerminating() callback method should work for your purpose. You can refer this article for sample code -> https://developer.tizen.org/documentation/articles/native-appmanagement 

 

Alex Dem

Hi
Try this api also:
Tizen::App::App::OnAppWillTerminate
The OnAppWillTerminate() method returns false to prevent the application from getting terminated...
Alexey.

Tung

thank you. I did it.

And now i have problem with drap & drop event. U can give me some sample code about it?

I following:https://developer.tizen.org/documentation/articles/working-drag-and-drop

But it not show drap animation.

hgw7

You can check the sample application 'Dynamic Box Viewer' which contains such a drag-drop feature.

https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.appprogramming%2Fhtml%2Fsample_descriptions%2Fdynamicboxviewer.htm

Byung geun Lee

I have a similar problem that has Application terminated randomly at Wearable Web Application.

Is it possible that Application to be always on. prevent it from terminated.

Alex Dem

Hi,
Afaik such feature is not supported for wearable web app but possibly in future
Native services (and native apps) should be available for wearable ( they could be auto-restarted)
Alexey.

Byung geun Lee

Thanks you! It is nice information for me!