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 over the next few weeks. Thanks for all your past and future contributions.
Determining the number of cameras on a Symbian device
Nokia N95 8GB
S60 3rd Edition, FP1
S60 3rd Edition, FP2
S60 3rd Edition FP2
S60 3rd Edition FP1
S60 3rd Edition (initial release)
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.
The following libraries are required:
- LIBRARY ecam.lib
// 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