Namespaces
Variants
Actions

How to handle End Call Key in 3rd edition?

Jump to: navigation, search
Article Metadata

Article
Created: eswar_illuri (22 May 2007)
Last edited: hamishwillee (26 Jul 2012)

By default, the End Call key simply quits the application in 3rd Edition (see Archived:Call termination key behavior has changed from S60 2nd Edition FP3 (Known Issue))

To handle End Call Key in 3rd edition, we need to catch window server event, i.e. AppUi's HandleWsEventL().

Sample code as follows:

void CExampleAppUi::HandleWsEventL(const TWsEvent &aEvent,
CCoeControl *aDestination)
{
if (aEvent.Type() == KAknUidValueEndKeyCloseEvent)
{
//Send your app to background or Exit from the application
}
}
This page was last modified on 26 July 2012, at 06:20.
50 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved