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