|
|
Classification: |
C++ |
Category: |
Window Server |
Created: |
08/16/2004 |
Modified: |
08/17/2004 |
Number: |
FAQ-1111 |
Platform: |
Symbian OS v6.0, Symbian OS v6.1, Symbian OS v7.0, Symbian OS v7.0s, Symbian OS v8.0, Symbian OS v8.0a, Symbian OS v8.1a |
|
Question: I'd like to be able to keep track of applications starting and exiting. Is this possible?
Answer: In the AppUI class of your application, call the following function:
CEikonEnv::Static()->RootWin().EnableGroupChangeEvents();
and override the function:
void CMyAppUi::HandleWsEventL(const TWsEvent& aEvent, CCoeControl* aDestination)
This will then be called whenever a "window group list change" event occurs. This can be identified by EEventWindowGroupsChanged and one such event will be registered whenever any application starts or exits. You can check through window groups to determine
exactly what happened, and which application was involved.
|
|
|