This page was last modified 12:10, 21 February 2008.
CS000826 - Determining the number of cameras on the device
From Forum Nokia Wiki
| ID | CS000826 | Creation date | February 21, 2008 |
| Platform | S60 3rd Edition S60 3rd Edition, FP1 S60 3rd Edition, FP2 | Tested on devices | Nokia E90 Communicator Nokia N95 8GB |
| Category | Symbian C++ | Subcategory | Hardware |
| APIs | None | Classes | CCamera |
| Methods | CCamera::CamerasAvailable() |
Overview
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
}
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Nokia 6030 and System.currentTimeMillis | MDWPPC | Mobile Java General | 9 | 2006-08-25 08:21 |
| Exposure control | Kurt Johannes | General Symbian C++ | 0 | 2005-04-21 16:49 |
| SMS/web application question | neilray | General Discussion | 4 | 2007-11-29 09:25 |
| taking pictures in mobile phones with digital cameras through J2ME | pedrosalazar | Mobile Java General | 1 | 2002-12-02 09:23 |
| Number of message IDs | freaky_911 | Python | 5 | 2008-03-31 00:02 |

