看看想想记记
« »
September 9, 2008Symbian

397 views

如何得到手机的型号?symbian

From:newLC

Common products UIDs

S60

Platform Device Product UID Machine/Platform UID

UIQ

Platform Device Product UID Machine/Platform UID

Other/Older Platforms

Series 80 v2.0   0x101F8ED2

How to use the UIDs

Platform UID
These UIDs shall be used in your PKG file to specify on which platform your application will work. As an example, an application running on Series 60 v0.9 platform will have the following line in its PKG:

(0x101F6F88), 0, 0, 0, {"Series60ProductID"}

Starting with S60 3rd Edition, the syntax is now:

[0x101F7961], 0, 0, 0, {"S60ProductID"}

Or for UIQ 3:

(0x101F6300), 3, 0, 0, {"UIQ30ProductID"}
(0x101F63DF), 3, 1, 0, {"UIQ31ProductID"}

Product UID
The product UID can be use instead of the platform UID if oyr application is specific to a single phone and not the whole platform family. Exemple for a Nokia 6630 specific application:

(0x101F7964), 0, 0, 0, {"Nokia6630ProductID"}

With S60 3rd Edition and later, you can use several phones target. Ex for N71 and N80:

[0x10275218], 0, 0, 0, {"Nokia N71 ID"}
[0x200005F9], 0, 0, 0, {"Nokia N80 ID"}

Machine UID

#include <hal.h> // also link to hal.lib

TInt mUid = 0;
HAL::Get(HALData::EMachineUid, mUid);

Here is a list of machine and platform UIDs that can be used to uniquely identify a phone model or its family: :

日志信息 »

该日志于2008-09-09 12:22由 J.et wong 发表在Symbian分类下, 你可以发表评论。除了可以将这个日志以保留源地址及作者的情况下引用到你的网站或博客,还可以通过RSS 2.0订阅这个日志的所有评论。

相关日志 »

  • No Related Post

没有评论

发表评论 »

返回顶部

Switch to our mobile site