View Full Version : Determine phone model?


CaigD
20-09-2004, 09:42 AM
Hi,

Is there a way to determine at run-time the model of the phone that an app is being run on? i.e. Can you determne the make and model number? Or is there someway of getting an ID string such as "Nokia 9210"?

Thanks for any help.

Craig.

CraigD
20-09-2004, 02:14 PM
Replying to myslef, in case others are interested. I found the following, and it seems to work:

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

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

See: http://www.newlc.com/article.php3?id_article=161

i.e. I can use the machine specific UID to test against.

awyeah
13-10-2004, 02:38 AM
There are codes, to determine which symbian version it is running on, what is the model "i" or just the simple 9210 and also the IMEI number.

I forgot the codes, but you enter it into the phone display and it shows you the software versions loaded and application versions you can see from the Install Components section in the Control Panel.

As for the 9210i and 9210. The difference is of the color of the keybad if they haven't been switched. The 9210 has dark, black keys on the phone side, while the 9210i has silver keys, same as its casing color.\

For the IMEI number ther is also a code to retrieve it. Or goto Phone, About in your PDA interface and see the IMEI number.