Revision as of 19:22, 18 July 2012 by lpvalente (Talk | contribs)

Determining the number of cameras on a Symbian device

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Tested with
Devices(s): Nokia E90 Communicator
Nokia N95 8GB
Platform(s): S60 3rd Edition
S60 3rd Edition, FP1
S60 3rd Edition, FP2
S60 3rd Edition FP2
S60 3rd Edition FP1
S60 3rd Edition (initial release)
Keywords: CCamera, CCamera::CamerasAvailable()
Created: tapiolaitinen (14 Feb 2008)
Last edited: lpvalente (18 Jul 2012)


This code snippet describes how to determine the number of cameras on the device. Naturally, the same technique lets one to determine whether the device has a camera or not.

This snippet can be self-signed.

MMP file

The following libraries are required:

  • LIBRARY ecam.lib

Source file

#include <ECam.h>
// The number of cameras present on the device is stored in the cameras variable.
TInt cameras = CCamera::CamerasAvailable();
if (cameras == 0)
// The device doesn't have a camera. For example, Nokia E61
66 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.