Languages

Menu
Sites
Language
api to find which application is running in foreground

Responses

7 Replies
Alex Ashirov

Hi,

Please take a look at Tizen::App::AppManager::GetActiveApp ( AppId &  appId ) 

harish kumar kavali

Hi alex,

for this Api i need partner privileges , is there any other way to do this with out using partner privileges                                                                                                        & also can u tell me the difference between OnScreenOff() & OnBackground() events

Regards
Harish

Alex Ashirov

Hi,

I don't know answer on your 1 st question.

Regarding OnScreenOff() & OnBackground() events. First one is called when the screen turns off (this is related to power safe mode), but OnBackground() is called when UI application is moved to background.

Alex Dem

Hi,
I don't see restrictions to use platform (partner) level api
just fyi:
https://developer.tizen.org/dev-guide/2.2.1/org.tizen.gettingstarted/html/tizen_overview/partner_privileges.htm
https://developer.tizen.org/dev-guide/2.2.1/org.tizen.gettingstarted/html/tizen_overview/platform_privileges.htm
Certificate to obtain platform privileges is placed here:
https://review.tizen.org/git/?p=framework/security/hash-signer.git;a=tree;f=certificates;h=4be4c272ac5a9d2ece19ae459ea4117a51e71ae9;hb=bd8d04b0e94ae6cce668f6df9c93316eded01cd5
Alexey.

Alex Ashirov

Hi Alexey,

Please note that these solutions will work only in the Emulator. You cannot use these patches on commercial devices.
 

Alex Dem

Hi Alexander,
Just FYI: it works not only for Emulator.
On M0 and M1 Tizen ref devices it works too.
Alexey.

Alex Ashirov

Hi Alexey,

Right. I meant that it will not work on commercial devices. According to help:

"You can use the partner certificate patch only in the Emulator and reference binary target. You cannot use the partner certificate patch on commercial devices."