Symbian-Developers
The Official Developers Section => Symbian Software Development Discussions => The Developers Section => Symbian Java/C++ Application Development => Topic started by: huellif on November 02, 2013, 04:38:10 pm
-
Sometimes you have to launch the taskmanager from your app (e.g. if you created a own shell/launcher).
It's really simple to do:
1. add "eiksrvc.lib" to your .mmp /for Qt users add "-leiksrvc" to libs
2. include REikAppUiSession#include "eiksrvc.h"
3. the implementation:
REikAppUiSession uiServer;
CleanupClosePushL(uiServer);
User::LeaveIfError(uiServer.Connect());
uiServer.LaunchTaskList();
CleanupStack::PopAndDestroy(&uiServer);
this sample code is based on http://developer.nokia.com/Community/Wiki/Launching_Task_Switcher_Application_Programmatically , but with usual exception handling of an R class.