Languages

Menu
Sites
Language
How to use OnActiveAppChanged in native application ?

I want to know what application is currently active. I implement  Tizen::App::IActiveAppEventListener but OnActiveAppChanged method is not working.

What is the solution?

 

Responses

2 Replies
Alex Dem

Hi ,
It should works (I have checked on 2.2.0 official device and Emulator). I suspect two possibly causes:
1) AddActiveAppEventListener api require privilege http://tizen.org/privilege/appusage with  partner privilege level :
https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.gettingstarted%2Fhtml%2Ftizen_overview%2Fsecurity.htm
2) You have terminated your app instead of allow him go to background state.
Alexey.

Byron Gavras

Thank you Alex. I will try and  i will be back.