I have an application which should not continue to run in its active state when the case is closed as the user will lose their place (information will be displayed which was not seen) and the battery will be run down unnecessarily. So I need to tell when then the case has been closed so I can do an automatic "pause." How do I do this?
Posted by Thomas Crosley, tcrosley@softology.com
on January 08, 2002 at 09:08
RE: How to tell when the case has been closed?
2002-05-29, 03:36#2
Posted by Forum_Nokia Developer_Support, communicator.developer@nokia.com
on January 09, 2002 at 12:54
Override CEikAppUi::HandleWsEventL like this:
void CMyAppUi::HandleWsEventL(const TWsEvent& aEvent, CCoeControl* aDestination)
{
TInt type=aEvent.Type();
switch (type)
{
case EEventCaseOpened:
// case opened code
break;
case EEventCaseClosed:
// case closed code
break;
}
// we need to let Eikon see the events too
CEikAppUi::HandleWsEventL(aEvent, aDestination);
}
Regards,
FN Developer Support
RE: How to tell when the case has been closed?
2002-06-26, 19:27#3
Hi are you sure that youre using CAknAppUi not the CEikAppUi while deriving? I used EikAppUi on 7650 and had similiar problem (not the case but menu pressing)