×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Jul 2012
    Posts
    82

    Putting network check before sending silent SMS.

    I am sending a slient SMS from my Application. The Application runs in the background when ever the phone is switched on. i just want to check the availability of the network before sending the SMS from the phone.

    Regards
    Alok.

  2. #2
    Registered User
    Join Date
    Jan 2005
    Location
    Italy
    Posts
    639

    Re: Putting network check before sending silent SMS.

    Hello,
    you could check, for example, if phone is in Offline mode:
    http://www.developer.nokia.com/Commu...n_offline_mode
    regards,
    pg

  3. #3
    Registered User
    Join Date
    Jan 2005
    Location
    Italy
    Posts
    639

    Re: Putting network check before sending silent SMS.

    Seems that there is also a way to check the SIM status.
    Starting from here, post #2:
    http://www.developer.nokia.com/Commu...evice-NOKIA-N8
    you can look into that source file and you can find:
    Code:
    RProperty simStatus;
    #ifndef RD_STARTUP_CHANGE
    		User::LeaveIfError(
            simStatus.Attach( KUidSystemCategory, KPSUidSimCStatusValue ) );
        	User::LeaveIfError( simStatus.Get( simCStatus ) );
    #else
    		User::LeaveIfError(
            simStatus.Attach( KPSUidStartup, KPSSimStatus ) );
        	User::LeaveIfError( simStatus.Get( simCStatus ) );
    #endif
        	simStatus.Close();
    
    #ifndef RD_STARTUP_CHANGE 		
    		if( simCStatus == EPSCSimRemoved )
    #else
    		if( simCStatus == ESimNotPresent )
    #endif
    regards,
    pg

Similar Threads

  1. how to check phone silent in j2me
    By myspace2010 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2010-08-03, 08:01
  2. error while sending silent sms
    By millansf in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2009-04-01, 14:38
  3. Sending silent sms
    By santu.paul@gmail.com in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2009-02-18, 05:18
  4. Proper way to check for network connection
    By bercobeute in forum Symbian
    Replies: 0
    Last Post: 2006-12-13, 11:34
  5. How to check the network mode
    By vinhcyim in forum Symbian
    Replies: 3
    Last Post: 2006-06-26, 16:33

Posting Permissions

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