언어 설정

Menu
Sites
Language
Process running

 I am trying to find a way to recognize what application is on foreground. I tried to get list of contexts by "getAppsContext()" but it seems the list only sorted by installed date. Is there any way to find out which application is most recently lunched ? 

Responses

2 댓글
Alex Dem

Hi,
AFAIK it is possible only for Native Apps. You could use Tizen::App::AppManager::GetActiveApp (AppId &appId) there.
Alexey

AVSukhov

Hello,

getAppsContext() return list of application contexts for applications that are currently running on a device. Even with this information you can not determine which application is foreground.

According Alex Dem comment you can use Native API. You can create Hybrid Web App (Web UI + Native Service) and communicate usein Messages Port.