按下红色结束通话键,程序仍然运行
01月 3rd, 2008
在Symbian S60第三版中,按下红色的结束通话键,程序默认退出,当还想保持程序继续运行状态,可以在AppUi的HandleWsEventL函数中进行处理,以下代码来自ScreenShot。
// ————————————————————————–
// Starting from S60 3.x, pressing End key will terminate application.
// We don’t want this to happen in this application, so we have to handle
// End key event (KAknUidValueEndKeyCloseEvent).
// ————————————————————————–
void CXXXAppUi::HandleWsEventL(const TWsEvent &aEvent, CCoeControl *aDestination)
{
switch (aEvent.Type())
{
case KAknUidValueEndKeyCloseEvent:
break;
default:
CAknAppUi::HandleWsEventL(aEvent, aDestination);
}
}
Popularity: 12% [?]
Entry Filed under: Symbian代码研究, Symbian开发, Symbian开发技巧
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed