Determining the number of cameras on a Symbian device
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