This page was last modified 10:57, 9 April 2008.
Closing the application via Task list
From Forum Nokia Wiki
User should be able to close all applications via device's Task list. Task list is opened by pressing the Application key for a while. Then, use can select the application to be closed and press C key. This is important from the usability and user experience point of view as applications running in the background may consume a lot of memory and battery.
Being able to close the application via Task list is a requirement in Symbian Signed. Application that cannot be closed via Task list, won't pass the tests and therefore cannot be Symbian Signed.
Solution
In order for an application to be closed through the Task list, it should handle the EEikCmdExit command either in the application UI or views. Independently of the current state, one of the application’s HandleCommandL() methods should react to EEikCmdExit and call Exit() on the application UI.
Note that an application cannot be closed through the Task list if it runs a confirmation dialog on exit, for example:
…
if(ConfirmExitL())
{
SaveL();
Exit();
}
…
where ConfirmExitL() displays a confirmation dialog. Consider removing the confirmation dialog, or running it only if the application is in the foreground. The above example could be rearranged as follows:
…
TBool reallyExit = IsForeground()?ConfirmExitL():ETrue;
if(reallyExit)
{
SaveL();
Exit();
}
…
where IsForeground() is provided by the CAknAppUiBase class.
See also
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| End user perception of Series 40 & Series 60 | jefernan | General Discussion | 3 | 2006-01-21 16:09 |
| Strange Problem with List Box Size | aditya4180 | Symbian User Interface | 2 | 2007-03-03 16:29 |
| Handling Key events in background running application !! | sanjayrajwani | General Symbian C++ | 1 | 2008-04-24 14:23 |
| background applications | pri | General Symbian C++ | 6 | 2007-11-29 12:59 |
| 如何关闭N73的照相机程序 | aloneno2 | Symbian | 4 | 2008-05-13 08:53 |
