Languages

Menu
Sites
Language
Getting callback when visibility of other apps changes

How to receive a callback when Visibility of any app changes. Suppose if a new app gets launched I want to receive a callback in my service and want to know app id so that I can track visbility of apps. I dont know how with such bad documentation and complexity of api, developer will get atracted towards Tizen. Can someone help me for this

Responses

3 Replies
Mango Bar

You can use application state change callbacks to grab its different visibility states (READY, CREATED, RUNNING, PAUSED, TERMINATED). 
The only difference between native app and service is, Since the service application has no UI, so it has no pause state.

To know details about Native Application State Change Callbacks and Service application Event callbacks, check the link bellow 

https://developer.tizen.org/dev-guide/2.4/org.tizen.guides/html/native/app/application_n.htm

https://developer.tizen.org/ko/development/guides/native-application/application-management/applications/service-application?langredirect=1#callback

Praveen Pandey

you didn't get the question! I know with application lifecycle callbacks. I want to know about other apps. I want to know when which app is being seen by user. Hope this clarifies the question.

Mango Bar

I don't see any callback to receive visibility of other apps. But there is an online sample app named "Taskmanager" which shows all the running applications. When you open any other apps, "Taskmanager" app will show that app in the running app list using its app id. You may get help from this application.

Sample app location: New Project --> Sample --> Mobile --> Native Application --> AppFw --> Taskmanager

Documentation on Taskmanager Sample app: https://developer.tizen.org/ko/development/sample/native/AppFW/Taskmanager?langredirect=1