×
Namespaces

Variants
Actions

Retrieving manufacturer name, device model number, and serial number (IMEI) using Symbian C++

From Nokia Developer Wiki
Jump to: navigation, search



Article Metadata
Compatibility
Platform(s): S60 3rd Edition, S60 3rd Edition FP1
S60 3rd Edition FP1
S60 3rd Edition (initial release)
Article
Created: User:Technical writer 2 (22 Nov 2006)
Last edited: hamishwillee (14 Jun 2012)

Overview

Retrieving manufacturer name, device model number, and serial number (IMEI)

Description

Retrieving the model information and the unique identification of the mobile device is possible without any capabilities using the CTelephony::GetPhoneId function.
The example code below highlights how the IMEI code can be retrieved inside an active object.
<code>
TRequestStatus iStatus;
CTelephony::TPhoneIdV1 iPhoneId;
...
CTelephony telephony = CTelephony::NewL();
CTelephony::TPhoneIdV1Pckg phoneInfo( iPhoneId );
telephony->GetPhoneId( iStatus, phoneInfo );
SetActive();
...
// In your RunL function...
TPtrC imeiCode( iPhoneId.iSerialNumber );
...
</code>
See the CTelephony class documentation for the capability requirements of other functions of that class.
S60 3rd Edition MR SDK and S60 3rd Edition, FP1 SDK include a useful example for investigating the functionality of the 3rd Party ETEL Telephony API. (S60Ex\IsvTelInfoApp).

This page was last modified on 14 June 2012, at 09:40.
46 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.

×