×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    2

    get IMEI on 6630

    I tried to get the IMEI on my 6630 with the etel3rdparty API.

    But my application crashed every time, when was using the CTelephony-Object.

    I was able to compile this Code, but it won't run.
    http://www3.symbian.com/faq.nsf/0/8D...C?OpenDocument

    While searching the Forum i found this (phoneutils.h... , deriving my application from CActive):
    http://discussion.forum.nokia.com/fo...AGetPhoneId%2A

    With this code, I had tha same problem like before...

    Has anybody an idea how to resolve this problem?

  2. #2
    Registered User
    Join Date
    Mar 2005
    Posts
    44
    You can try to read through here for UIQ
    http://www3.symbian.com/faq.nsf/0/39...4?OpenDocument

    I have try that also not working on 6670 phone.
    Here is the code I use.

    iTelephony = CTelephony::NewL();
    CTelephony::TSubscriberIdV1Pckg subscrIdPckg(iSubscrId);
    iTelephony->GetSubscriberId(iStatus, subscrIdPckg);
    if (iStatus==KErrNone)
    {
    TPtrC theIMSI(iSubscrId.iSubscriberId);
    _LIT(KIMSI, "IMSI number" );
    IMSI.Copy(theIMSI);
    iVersion.Format( KStringFormat, &KIMSI, &IMSI );
    }
    else
    iVersion.Copy( _L("Error retrieving IMSI"));
    }
    delete iTelephony;


    For IMEI, u can try to use TPlpVariant Class. Look at the example on Sysinfo.
    Example:
    TBuf<64> iVersion;
    _LIT( KStringFormat, "%S\n%S" );
    _LIT(KTitle, "IMEI number" );
    TPlpVariantMachineId id;
    PlpVariant::GetMachineIdL( aId )
    iVersion.Format( KStringFormat, &KTitle, &id );


    http://www.forum.nokia.com/Forum/Com...RXppcA==&type=

    Last edited by kkboy1; 2005-04-23 at 11:55.

  3. #3
    Registered User
    Join Date
    Apr 2005
    Posts
    2
    TPlpVariant runs on 6630 but this class was removed from SDK 2.6...
    I need some special features from this SDK, so it's not possible to downgrade to SDK 2.1.

    Maybe, anybody has written a DLL to get some Phone informations, written with an old SDK - either I will write it myself.

Posting Permissions

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