×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    2

    Problem with CSmsSettings

    Hello,

    I have one problem with CSmsSettings class. I need send a SMS on device boot. For send a sms, I used CSmsSettings to get SMS service center. My code :

    Code:
    	iSmsMtm
    			= static_cast<CSmsClientMtm*> (iMtmRegistry->NewMtmL(KUidMsgTypeSMS));
    	iSmsMtm->RestoreServiceAndSettingsL();
    	const CSmsSettings& smsSettings = iSmsMtm->ServiceSettings();
    	if (!smsSettings.ServiceCenterCount())
    		{
    		User::Leave(KErrNotFound);
    		}
    	TInt scDefaultIndex = smsSettings.DefaultServiceCenter();
            return smsSettings.GetServiceCenter(scDefaultIndex).Address();
    The problem (my application start at the boot time) :

    1. I boot the device with SIM card : XXXX
      The service center is good : XXXX and the sms is send.
    2. I reboot the device with other SIM card (other operator) : YYYY
      The service center is not good because is XXXX and the sms is not send.
    3. I reboot the device with SIM card : YYYY
      The service center is good : YYYY and the sms is send.


    How I can have the good service center at the first reboot (step 2) ?

    Best regards
    Jean

  2. #2
    Super Contributor
    Join Date
    Jan 2007
    Location
    Bhubaneswar, India
    Posts
    1,189
    -------------------------------------
    Thanks & Regards
    Ram
    Symbian OS 9.2/9.3,S60 3rd FP1/FP2,Carbide.c++v2.0

Similar Threads

  1. SyncML link problem
    By samuel_ in forum Symbian
    Replies: 4
    Last Post: 2009-03-27, 08:02
  2. CSmsSettings compilation problem on Feature Pack1
    By ghulam.muhammad in forum Symbian
    Replies: 1
    Last Post: 2009-01-16, 06:55
  3. Problem with eglSwapBuffers and heap corruption
    By greatape in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-05-24, 03:35
  4. netcards - Problem with opening adapter
    By kernj in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2007-01-10, 08:56
  5. Problem: S60 SDK for CW in PC with .NET
    By anttij in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2005-02-28, 11:36

Posting Permissions

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