Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Archived:How to check if the native Symbian camera app is running

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Article Metadata
Platform(s): S60 3rd Edition
S60 3rd Edition (initial release)
Created: User:Technical writer 1 (08 Feb 2008)
Last edited: hamishwillee (14 Sep 2012)


In order to find out whether the Camera application is running, TApaTaskList class can be used to retrieve a list of currently running tasks.

Note that on some devices, such as the Nokia N93 and the Nokia N93i, the Camera task is always running in the background and only hidden from the list of active task when in background.


The following function returns ETrue if the Camera is running and not hidden from the list of active tasks.

Capability requirements: none

  #include <apgtask.h>      // link against apgrfx.lib
#include <apgwgnam.h>
// The UID of the native camera application
const TUid KNativeCameraAppUID = { 0x101ffa86 };
TBool CheckCameraStatusL()
TUid id( KNativeCameraAppUID );
TApaTaskList taskList( iWsSession ); // iWsSession is of type RWsSession
TApaTask task = taskList.FindApp( id );
if( task.Exists() )
CApaWindowGroupName* wgName =
CApaWindowGroupName::NewLC( iWsSession, task.WgId() );
TBool isHidden = wgName->Hidden();
CleanupStack::PopAndDestroy(); // wgName
return ETrue;
return EFalse;
This page was last modified on 14 September 2012, at 00:21.
44 page views in the last 30 days.