Symbian
Symbian OS Library

FAQ-1046 How can I find out when my app is put to the background or foreground

[Index][spacer] [Previous] [Next]



 

Classification: C++ Category: Application Architecture
Created: 05/05/2004 Modified: 05/05/2004
Number: FAQ-1046
Platform: Symbian OS v6.0, Symbian OS v6.1, Symbian OS v7.0, Symbian OS v7.0s, Symbian OS v8.0a

Question:
What code can I use to find out when my application has been sent to the background or brought to the foreground ?

Answer:
Over-ride CEikAppUi::HandleForegroundEventL(TBool aForeground) in your appUI class.

The application framework calls the function with "EFalse" when your application loses focus and "ETrue" when it gains focus.