|
|
User login
Feeds |
Determining device type programatically?
|
|||||
| Tue, 2004-11-02 21:46 | |
Forum posts: 58
Please help.
Anton
www.fxuiq.com
Forum posts: 1379
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
Forum posts: 32
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
Forum posts: 1379
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
Forum posts: 53
As is par for the course with most things Symbian.
Rand.
Forum posts: 1379
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
Forum posts: 53
Some are probably too big to give a damn anyway
Rand.
Forum posts: 32
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.
Forum posts: 2
This should meet most of your requirements. If you have any special requirement with device identification then let me know.