×
Namespaces

Variants
Actions

如何获取厂商名称、手机型号以及串号(IMEI)

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata

文章
huwell 在 23 Jan 2008 创建
最后由 hamishwillee 在 15 Dec 2011 编辑
  • 开发伙伴平台:

S60 3rd Edition, S60 3rd Edition FP1


  • 详细描述

我们无需任何能力capability只要通过如下方法即可获取手机型号及唯一识别码:

ephony::GetPhoneId

下面的示例代码演示了如何通过一个活动对象获得IMEI:

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 );
 
...

查看文档中有关CTelephony类所需的能力,以及相关方法描述。


S60第三版MR SDK和S60第三版FP1 SDK还包含了一个如何使用第三方ETEL电话API的示例(S60Ex\IsvTelInfoApp)

This page was last modified on 15 December 2011, at 09:44.
42 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.

×