diff -r 4816d766a08a -r f345bda72bc4 Symbian3/PDK/Source/GUID-0F1CB874-391F-5D44-B960-517E447DC712.dita --- a/Symbian3/PDK/Source/GUID-0F1CB874-391F-5D44-B960-517E447DC712.dita Tue Mar 30 11:42:04 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-0F1CB874-391F-5D44-B960-517E447DC712.dita Tue Mar 30 11:56:28 2010 +0100 @@ -9,7 +9,14 @@ --> -Accessing the Running ApplicationsApplications running on a device are known as tasks. The TApaTaskList class is used to access applications running on a device, where each task can be an instance of the TApaTask class, which is used to manipulate or query tasks.
Finding an application by its UID

The following example code shows how to find or end a running application that is, a task by its UID using the TApaTaskList and TApaTask classes.

// Assign UID of the application to a constant, to find the application by its UID +Accessing +the Running ApplicationsApplications running on a device are known as tasks. The TApaTaskList class +is used to access applications running on a device, where each task can be +an instance of the TApaTask class, which is used to manipulate +or query tasks. +
Finding an +application by its UID

The following example code shows how to +find or end a running application that is, a task by its UID using the TApaTaskList and TApaTask classes.

// Assign UID of the application to a constant, to find the application by its UID const TUid KMyAppUid = {0x10009e9f}; @@ -28,10 +35,14 @@ if (task.Exists()) { task.EndTask(); // Ends the task - }
Bringing an application to the foreground

The following code example shows how to find an application by its name and then bring it to the foreground.

_LIT(KAppName, "myApp"); + }
+
Bringing an +application to the foreground

The following code example shows +how to find an application by its name and then bring it to the foreground.

_LIT(KAppName, "myApp"); TApaTaskList taskList(CCoeEnv::Static()->WsSession()); TApaTask task = taskList.FindApp(KAppName); if (task.Exists()) { task.BringToForeground(); - }
\ No newline at end of file + }
+
\ No newline at end of file