Determining device type programatically?

Login to reply to this topic.
Tue, 2004-11-02 21:46
Joined: 2003-11-12
Forum posts: 68
Is there a way to determine the type of device your application is running on?  I'd like to get as specific as possible, hopfully to include manufacturer and model - e.g. Nokia 6600 or SEMC P910.

Thanks.

Thu, 2004-11-04 01:35
Joined: 2004-08-18
Forum posts: 58
Determining device type programatically?
I am as well looking for the method of knowing which device I am running on at runtime...  I in particular need to distinguish between P900 and A925...  

Please help.

Anton

Thu, 2004-11-04 10:15
Joined: 2004-07-28
Forum posts: 1379
Determining device type programatically?
Can't be done.

At least not reliably.

It's up to a licenese to implment this sort of thing (nokia/se etc) and to be honest, most don't.

You may get something out of the methods in PlpVariant - but you will find some (few) phones give you correct anwsers, most give you nothing, and some even give you incorrect ones.

Some people use tricks - for instance, does the file Z:\system\libs\avkon.dll exist - if so, you are probably a series 60 device - if not, your something else - there is also one for UIQ - but telling say two UIQ devices apart is not so easy.

didster

Thu, 2004-11-04 11:20
Joined: 2004-06-08
Forum posts: 32
Determining device type programatically?
You can do that, if you have etelmm.h

Use RMobilePhone::TMobilePhoneIdentityV1 to get Manufacturer and Device Type. Another possibility is to read out the device specific UID, I think it's be done over the system agent.

Greetz

Arne
Thu, 2004-11-04 11:22
Joined: 2004-07-28
Forum posts: 1379
Determining device type programatically?
It wont always give you the correct results.

Try it on a 7650 - it gives you "" and "".

Try it on a 6600 - It gives you "Nokia" and ""

Point is there is no reliable way of doing it.

didster

Thu, 2004-11-04 22:02
Joined: 2004-08-30
Forum posts: 53
Determining device type programatically?
Quote from: didster
Point is there is no reliable way of doing it.

As is par for the course with most things Symbian. Wink

Rand.
Fri, 2004-11-05 09:49
Joined: 2004-07-28
Forum posts: 1379
Determining device type programatically?
Smiley  Very true.

Unfortuatly this is one of the things they don't really have control over.  They ship the devkits to licencess with instructions on what they are to change so their devices can be reported to the OS correctly at runtime.  Some do, some don't, some just don't seem to care...  Same goes for build time - try telling apart different builds without using your own MACRO statments... It's made far to hard for what should be something so simple.

didster

Fri, 2004-11-05 10:45
Joined: 2004-08-30
Forum posts: 53
Determining device type programatically?
Quote from: didster
Some do, some don't, some just don't seem to care...

Some are probably too big to give a damn anyway Wink

Rand.
Fri, 2004-11-05 18:45
Joined: 2004-06-08
Forum posts: 32
Determining device type programatically?
Quote from: didster
It wont always give you the correct results.

Try it on a 7650 - it gives you "" and "".

Try it on a 6600 - It gives you "Nokia" and ""

Point is there is no reliable way of doing it.

What do you mean? The etelmm method won't work on 7650, but it works well on Nokia 6600, returns Nokia and 6600, too.
Sat, 2004-11-06 13:18
Joined: 2004-11-06
Forum posts: 2
The solution exists
I am quite amazed to see the above group locked in its own converstation without researching. Did any one of you read http://www.newlc.com/article.php3?id_article=161
This should meet most of your requirements. If you have any special requirement with device identification then let me know.
 Roll Eyes
  • Login to reply to this topic.