Languages

Menu
Sites
Language
A background native application without any UI

Hi All,

I want to develop a Tizen native application that runs in the backgorund without any UI and monitors my another native application that is currently running. I don't want to use service, I want to achieve it using native application. Please let me know if any pointers and document that helps to achieve this on Tizen.

Responses

5 Replies
Halli Kumar

Hi,

Thanks for the information. I am new to Tizen, sorry if my doubts are trivial. Is this service app similar to Windows Service? If yes, then I am not looking for such a service application. My requirement is, a test tool that launches another application that is developed by others and then monitor its exit state. For this, the test tool should run as a background application without any UI, that can take input arguments, and the application that gets launched will be in the foreground.

Coming to inter app communication part, the message port needs some modification or handling in the application that is being monitored. This is not possible as the tool should be capable of monitoring any given native application. It need to report whether the application under test exited fine or not. So I think message port will not be a feasible option.

Hope I am clear now.

Please help me or provide pointers for getting this resolved.

Thanks in advance.

hgw7

Hi,

AFAIK there is no such tool that can be used to monitor applications. Yes service applications are similar that run on the backgroud. Using message port and the event listeners which you want monitored, it should be possible to create your application. You can send the result to the service app in the OnTerminating() callback method of UI app when it is exiting. 
The following reference to the sample application that can demonstrate the communication may help -> https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.appprogramming%2Fhtml%2Ftutorials%2Fapp_tutorial%2Ftask_multiprocuiapp.htm

Halli Kumar

Hi,

Thanks for your response. May be I am not clear. If the application under test is developed by me, then it is possible to do that in Terminating event handler as suggested. But the tool I am developing should be able to monitor any given app and log message if that exited fine or not,say for eg installed app like calculator, The tool should be able to monitor this application and log the exit status of this application.

hgw7

Sorry, understood the application concept now.
You can try by implementing IActiveAppEventListener Interface and Tizen::App::AppManager Class. Exit conditions cannot be obtained, i guess.

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