lunedì 10 marzo 2008

Foreground event

How to detect when your application is sent to background or bring into foreground ?
In your AppUi class, You have to re-implement the method:

void HandleForegroundEventL(TBool aForeground)

When called, aForeground says that, if true, your application is bring into foreground, while if false, your application is sent to background.

Here the implementation:

void CYourAppUi::HandleForegroundEventL(TBool aForeground)
{
// ..do something..

CAknViewAppUi::HandleForegroundEventL(aForeground);
}

Nessun commento: