• April 27, 2024, 11:51:47 am

Author Topic: launching taskmanager  (Read 1710 times)

0 Members and 1 Guest are viewing this topic.

Offline huellif

  • Developer
  • Christmas Santa
  • ****
  • Posts: 402
  • Reputation: 212
launching taskmanager
« 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
Code: [Select]
#include "eiksrvc.h"
3. the implementation:

Code: [Select]
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.
« Last Edit: November 02, 2013, 09:04:42 pm by huellif »