×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Jan 2009
    Location
    India
    Posts
    138

    sms content not shown while new sms come and callback method call

    Hi All,


    I have trying to read sms when the sms come in device that time i want to read sms with my application. I have used below code snippet.

    Code:
    def message_received(msg_id):
        box = inbox.Inbox()
        sms_text = box.content(msg_id)
        print sms_text
    		
    box = inbox.Inbox()
    box.bind(message_received)

    But, when i raised a send SMS message event from Emulator 's Utility -> Events that time "sms_text" does not show any text message. in this case i am gettin msg_id correct.

    But, when i raised a send MMS message event from Emulator 's Utility -> Events that time "sms_text" show correctly like (This is message text.)


    Please help me what is wrong with above code for not showing SMS message while pressing emulator's Emulator 's Utility -> Events SMS message -> Send.

    I am using S60 3rd Edition FP2 sdk v1.1 Emulator.
    Last edited by pavan.pareta; 2009-05-25 at 13:35. Reason: formating
    Pavan Pareta
    Sr. Software Engineer
    http://windows-mobile-dev.blogspot.com

  2. #2
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,796

    Re: sms content not shown while new sms come and callback method call

    Use a e32.ao_sleep(time) in the callback function.
    Pankaj Nathani
    www.croozeus.com

  3. #3
    Regular Contributor
    Join Date
    Jan 2009
    Location
    India
    Posts
    138

    Thumbs up Re: sms content not shown while new sms come and callback method call

    Quote Originally Posted by croozeus View Post
    Use a e32.ao_sleep(time) in the callback function.
    Thanks Croozeus.... it's working fine
    Pavan Pareta
    Sr. Software Engineer
    http://windows-mobile-dev.blogspot.com

Posting Permissions

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