×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    177

    phone model name in 3rd

    how to get phone model name in S60 3rd? eg. "Nokia E61"
    Before I used SysUtil::UserAgentStringL and parsing UserAgent text for "Nokia" word.... but it is not possible in 3rd. Any alternative?

  2. #2
    Registered User
    Join Date
    Jun 2004
    Posts
    177

    Re: phone model name in 3rd

    All what I found in sdk docs:
    "SC Breaks Caused by S60 3rd Edition

    SysUtil API
    The UserAgentStringL method is removed from the SysUtil API into the new WebUtils component. The GenerateGripEvent method has become obsolete and has been removed from the SysUtil API"

    WDFCK WebUtils are they talking about? no mention in documentation at all!!!

    Actualy there are just a few words:
    "WebUtils API (3rd Edition)
    The WebUtils API is a collection of classes that provide services to Web-related applications. The API allows retrieving the User Agent string, and adding, modifying, and deleting fragments and subfragments of the User Agent string."
    Who can say more?

  3. #3
    Registered User
    Join Date
    Jun 2004
    Posts
    177

    Re: phone model name in 3rd

    how to get phone model name in S60 3rd? Anyone knows?

  4. #4
    Super Contributor
    Join Date
    Nov 2005
    Location
    London
    Posts
    584

    Re: phone model name in 3rd

    This may help you some:

    Check out section 5 of this document (in particular). It shows how to determine the machine UID at runtime - and says that "in newer S60 devices (from S60 2nd Edition, Feature Pack 3 onwards) the Machine UID is usually the same as the Product ID. All supported Machine UIDs are listed in Table 1 and Table 2."

    http://www.forum.nokia.com/info/sw.n..._4_en.pdf.html

    So you won't get the name, but you can do a lookup against ID instead.

    Hope it's of some use...

  5. #5
    Registered User
    Join Date
    Jun 2004
    Posts
    177

    Re: phone model name in 3rd

    Thanks man!

    at least something... better than nothing..

  6. #6
    Registered User
    Join Date
    Jun 2004
    Posts
    177

    Re: phone model name in 3rd

    Is it possible to get somewhere list of MachineUIDs for all Symbian 7, 8, 9 devices? (S60, S80 and UIQ models)

  7. #7
    Registered User
    Join Date
    Apr 2005
    Location
    Barcelona
    Posts
    1,678

  8. #8
    Registered User
    Join Date
    Jun 2004
    Posts
    177

    Re: phone model name in 3rd

    great!
    thank you

  9. #9
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    393

    Re: phone model name in 3rd

    Hi,

    Unfortunately WebUtils is not available and SysUtils has removed the the method for user agent string. You may use SysUtil::GetSWVersion and get the phone model info from there.

    Regards,
    Nitin

  10. #10
    Registered User
    Join Date
    Mar 2003
    Posts
    10

    Re: phone model name in 3rd

    Have a look at CTelehonony::GetPhoneId-method in the S60 3rd edition.
    The returned information should contain both the manufacturer and phone model name.
    An example can be also found from
    S60Ex\IsvTelInfoApp (there in particular the src\IsvTelinfoAppTelephony.cpp)

    Hope this helps to your problem.

  11. #11
    Registered User
    Join Date
    Jul 2007
    Posts
    4

    Re: phone model name in 3rd

    Hi,我已经成功在3rd上获得手机型号,并在手机上测试成功。
    (1).mmp文件中加
    LIBRARY hal.lib
    LIBRARY sysutil.lib
    (2).hrh文件中加
    enum TMachineID
    {

    // S60 3rd Edition Symbian v.9.1
    ENokia3250 = 0x200005F8
    ,ENokiaE60 = 0x20001856
    ,ENokiaE61 = 0x20001858
    ,ENokiaE70 = 0x20001857
    ,ENokiaN71 = 0x200005FF
    ,ENokiaN73 = 0x200005FB
    ,ENokiaN80 = 0x200005F9
    ,ENokiaN91 = 0x200005FC
    ,ENokiaN92 = 0x200005FA

    };
    注意:上述枚举值仅是3rd的手机对应的UID
    (3)在要获得手机型号的文件中加
    #include <hal.h>
    #include <SysUtil.h>

    #include <hal_data.h>
    (4)接着添加
    TInt machineId;
    HAL::Get(HALData::EMachineUid,machineId);
    switch(machineId)
    {
    case ENokia3250:
    temp.Append(_L("Nokia 3250"));
    break;
    case ENokiaE60:
    temp.Append(_L("Nokia E60"));
    break;
    case ENokiaE61:
    temp.Append(_L("Nokia E61"));
    break;
    case ENokiaE70:
    temp.Append(_L("Nokia E70"));
    break;
    case ENokiaN71:
    temp.Append(_L("Nokia N71"));
    break;
    case ENokiaN73:
    temp.Append(_L("Nokia N73"));
    break;
    case ENokiaN80:
    temp.Append(_L("Nokia N80"));
    break;
    case ENokiaN91:
    temp.Append(_L("Nokia N91"));
    break;
    case ENokiaN92:
    temp.Append(_L("Nokia N92"));
    break;
    default:
    temp.Append(_L("Nokia"));
    break;

    }

  12. #12
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: phone model name in 3rd

    Or you could just use the official method as documented in TSS000466
    http://forum.nokia.com/document/Foru...model_name.htm

  13. #13
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,347

    Smile Re: phone model name in 3rd

    Hi,

    You can also check out following Wiki article:
    How to retrieve S60 3rd Edition device model name

    Kiran.

  14. #14
    Regular Contributor
    Join Date
    Oct 2006
    Posts
    157

    Re: phone model name in 3rd

    Ha ha, funny that so many had such a complex solution to this simple problem, and that there actually exits an easy solution!
    I been searching around and found simular complex solutions.

    I wish everything was be as simple as this, then we could get more done.

    Thanks guys!

  15. #15
    Regular Contributor
    Join Date
    Nov 2006
    Location
    Switzerland
    Posts
    476

    Re: phone model name in 3rd

    The phone model and manufacturer can also be retrieved using the Telephony ISV API:
    Code:
    TBuf<CTelephony::KPhoneManufacturerIdSize> manufacturer = iPhoneIdV1.iManufacturer;
    TBuf<CTelephony::KPhoneModelIdSize> model = iPhoneIdV1.iModel;
    See the techlib for more information.

Similar Threads

  1. Reading phone model
    By hishamabdo in forum Symbian
    Replies: 6
    Last Post: 2004-02-17, 09:13
  2. Identify phone model?
    By u0rf in forum Mobile Java General
    Replies: 1
    Last Post: 2003-12-03, 21:29
  3. Nokia Phone Model 6600
    By nicliu in forum General Development Questions
    Replies: 1
    Last Post: 2003-11-29, 07:39
  4. Sound.FORMAT_WAV and Nokia Phone Model Support
    By gregr170 in forum Mobile Java General
    Replies: 3
    Last Post: 2003-05-22, 13:44
  5. Can I access phone number and model from Java MIDP?
    By systemcode in forum Mobile Java General
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×