×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    104

    Retreiving the Tower ID in 3rd Edition

    Hi

    I'm developing tracking application in S60 3rd Edition for which
    i need network info continously say TowerID for every 1 minute,
    I've used RTimer::After(status,60000000) for 1 minute delay and CTelephony in RunL()
    hers my code of RunL,Application is terminating Abruptly,Can anyonelet me know whats wrong with the code.

    void CActive1::RunL()
    {
    if(state==1)
    {
    state = 2;
    telephony->GetCurrentNetworkInfo(iStatus, networkInfoPckg);
    SetActive();
    }
    if(state == 2)
    {
    state = 1;
    aImsi.Zero();
    _LIT(KCellId,"TowerId:");
    aImsi.Append(KCellId);
    TUint iCellId;
    iCellId = iNetworkInfo.iCellId;
    aImsi.AppendNum(iCellId);
    _LIT(KNewLine,'n');
    aImsi.Append(KNewLine);
    _LIT(KAreaCode,"AreaId:");
    aImsi.Append(KAreaCode);
    aImsi.AppendNum(iNetworkInfo.iLocationAreaCode);
    CAknInformationNote* informationNote1 = new (ELeave) CAknInformationNote;
    informationNote1->ExecuteLD(aImsi);
    iTimer.After(iStatus,30000000);
    SetActive();
    }
    //SetActive();
    /****/
    }//RunL()

    Thanks&Regards
    Preethi

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: Retreiving the Tower ID in 3rd Edition

    Hi,

    basically I don't see any bigger bug here (except of _LIT(KNewLine,'n');, which is not a new line)). Could you be more specific, how it crash? What error is displayed? Did it run at least once? Did you have tried to debug it?

    BR
    STeN

  3. #3
    Registered User
    Join Date
    Jan 2009
    Posts
    7

    Re: Retreiving the Tower ID in 3rd Edition

    hiii preethi can u give the source for retrieving cell info (network info) asap
    9chakri@gmail.com
    thanks a ton

  4. #4
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Retreiving the Tower ID in 3rd Edition

    Quote Originally Posted by debianmaster View Post
    hiii preethi can u give the source for retrieving cell info (network info) asap
    9chakri@gmail.com
    thanks a ton
    Check CTelephony API in SDK. Also refer following wiki articles to get cell info.

    http://wiki.forum.nokia.com/index.ph...in_3rd_Edition

    http://wiki.forum.nokia.com/index.ph...ith_CTelephony

Similar Threads

  1. Getting frustrated with 3rd edition C++ SDK and NCF 1.2
    By jzxu in forum Symbian Tools & SDKs
    Replies: 6
    Last Post: 2007-06-07, 09:46
  2. Getting frustrated with NCF 1.2 and 3rd edition SDK
    By jzxu in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2006-12-10, 00:15
  3. how to get IMEI in Series60 3rd edition ?
    By ahmed abdelaziz in forum Symbian
    Replies: 2
    Last Post: 2006-08-10, 15:17
  4. Carbide C++ AppWizards for 3rd Edition
    By ArneH in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2006-05-20, 21:22
  5. Plea for Link Errors:Porting Code from Fp3 to 3rd Edition
    By mateen_maldar in forum Symbian User Interface
    Replies: 3
    Last Post: 2006-05-17, 06:26

Posting Permissions

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