×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    10

    Lightbulb process the sms before stroring in to the inbox

    Hi

    I want to handle the sms when it recived to phone but before it get store to inbox.


    means i want to interepret the sms before get stored to the inbox

    Thanks,
    Pandharinath

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,335

    Smile Re: process the sms before stroring in to the inbox

    Quote Originally Posted by mobil.prog View Post
    Hi

    I want to handle the sms when it recived to phone but before it get store to inbox.


    means i want to interepret the sms before get stored to the inbox

    Thanks,
    Pandharinath
    You can interpret it simultaneously when it reaches to Inbox. Check this Wiki article: SMS Operations

    By the way do you want to show modified message in the Inbox somehow? What is your use case?
    Nokia Developer Wiki Moderation team

  3. #3
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: process the sms before stroring in to the inbox

    note that you might not able to remove the notification (beep) to user given by system.

  4. #4
    Regular Contributor
    Join Date
    Feb 2008
    Location
    Pune, India
    Posts
    340

    Re: process the sms before stroring in to the inbox

    Quote Originally Posted by skumar_rao View Post
    note that you might not able to remove the notification (beep) to user given by system.
    I don't get what the beep here means, but if it is the ringtone played after the message is received then it CAN be silenced.
    If the message is marked as "read" as we receive the notification of its arrival the phone will not play any tone.

    As Kiran asked, what is your use case?
    Regards,
    Sainagakishore Srikantham (Kishore)

    Don't Hope, KNOW!!! ---------- Visit me at http://ssnkishore.blogspot.com ----------

  5. #5
    Registered User
    Join Date
    Nov 2008
    Location
    Mumbai-India
    Posts
    379

    Lightbulb Re: process the sms before stroring in to the inbox

    Hi

    I want to develop application in S60 2nd edition that catching incoming messages before the user gets any notification .
    I got the same thing in 3rd edition but it is not working may some thing missing in that.

    can u help me?

    Thanks,

    pandhari

  6. #6
    Regular Contributor
    Join Date
    Feb 2008
    Location
    Pune, India
    Posts
    340

    Re: process the sms before stroring in to the inbox

    The code given of this link works for S602nd and S603rd editions.
    As you said, you've already done that for 3rd edition, compare your code with the one on the link.
    Regards,
    Sainagakishore Srikantham (Kishore)

    Don't Hope, KNOW!!! ---------- Visit me at http://ssnkishore.blogspot.com ----------

  7. #7
    Registered User
    Join Date
    Nov 2008
    Location
    Mumbai-India
    Posts
    379

    Re: process the sms before stroring in to the inbox

    Hi
    i think in that code SMS is read after the recving the sms in to mail box.

    I want that it should not received to the Inbox.
    and I want to control on "new sms notification" (can block or can unblock).
    I want to handle it before get stored in to inbox.
    i want control on going sms in to inbox i.e. block and unblock
    Thanks,
    Pandhari
    Last edited by pandhari.gorde; 2008-11-26 at 14:56.

  8. #8
    Registered User
    Join Date
    Mar 2003
    Posts
    23

    Re: process the sms before stroring in to the inbox

    Have you looked at MMsvSessionObserver
    and especially MMsvSessionObserver::HandleSessionEventL(TMsvSessionEvent aEvent, TAny *aArg1, TAny *aArg2, TAny *aArg3)?

    I think there are some code examples from nokia that uses this as well,
    can't remember which ones though - have a look at their sms code examples.

  9. #9
    Regular Contributor
    Join Date
    Feb 2008
    Location
    Pune, India
    Posts
    340

    Re: process the sms before stroring in to the inbox

    Hello Pandhari,

    What you want to do is surely possible. If you look at the code at this link, there is a function HandleEntryL() in which the first statement is
    Code:
    CMsvEntry* entry = iSession->GetEntryL(aEntId);
    //adding this line to it will move it to the inbox
    entry->MoveL(aEntId, KMsvGlobalInBoxIndexEntryId, iStatus);
    If you comment that statement the message will not move to the inbox. You can play with the statement according to your "block / unblock" logic. I hope I've answered your question.
    Regards,
    Sainagakishore Srikantham (Kishore)

    Don't Hope, KNOW!!! ---------- Visit me at http://ssnkishore.blogspot.com ----------

  10. #10
    Registered User
    Join Date
    Nov 2008
    Location
    Mumbai-India
    Posts
    379

    Lightbulb Re: process the sms before stroring in to the inbox

    Hi

    I saw MMsvSessionObserver.
    but problem with this that MMsvSessionObserver this notifies event to both my application + to the default sms receiving application. so default application thread my app thread runn simultaniously and sms go in to inbox.

    That's my problem.

    Now i am looking for remove observer of the default sms appl

    and keep in my app and so i can control incoming sms.

  11. #11
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,570

    Re: process the sms before stroring in to the inbox

    Actually there is an SMS Utilities API (part of the plugin packs: http://wiki.forum.nokia.com/index.php/SDK_API_Plug-in), but if you capture an SMS that way, it will not be automatically delivered to the Inbox, even if you want it to get there. So you have to provide your own way of storing the SMS.

  12. #12
    Regular Contributor
    Join Date
    Feb 2008
    Location
    Pune, India
    Posts
    340

    Re: process the sms before stroring in to the inbox

    Even though both the applications receive notifications, you can control the SMS being stored in the Inbox. Have you tried the code I posted earlier?
    Regards,
    Sainagakishore Srikantham (Kishore)

    Don't Hope, KNOW!!! ---------- Visit me at http://ssnkishore.blogspot.com ----------

  13. #13
    Registered User
    Join Date
    Nov 2008
    Location
    Mumbai-India
    Posts
    379

    Re: process the sms before stroring in to the inbox

    Hi kishore

    a/c to u are saying

    code:
    if ( *entryId == KMsvGlobalInBoxIndexEntryId ) // new entry has been created in Inbox folder
    is clearly saying that when entry is going to made in inbox.

  14. #14
    Regular Contributor
    Join Date
    Feb 2008
    Location
    Pune, India
    Posts
    340

    Re: process the sms before stroring in to the inbox

    Well, my friend you can check the condition well before what you've mentioned.

    Code:
    case EMsvEntriesCreated:
    {
    if(msgType == KUidMsgTypeSMS) // this is when you know its an SMS
    }
    You can show you pop up dialog or whatever when this happens and manage the movement of the message to Inbox.

    But, let me warn you that this code will also execute when the user will create a message (SMS) to be sent. You'll have to manage the logic somehow. If I can come up with something, I'll post, till then implement the code for the incoming messages.
    Regards,
    Sainagakishore Srikantham (Kishore)

    Don't Hope, KNOW!!! ---------- Visit me at http://ssnkishore.blogspot.com ----------

  15. #15
    Registered User
    Join Date
    Sep 2008
    Posts
    16

    Re: process the sms before stroring in to the inbox

    I've done an app for the phone, but now i need to make an app for the PC.
    This app will wait for incoming sms and as soon as it is received, it'll be extracted.

    I'm using nokia 6101 connected via dku-5 cable. I used gnokii tools and smsd but it gives me a problem something like this:
    Getting SMS...
    Getting SMS...
    Getting SMS...
    Deleting SMS... ( this happens the moment a msg is recd)
    Getting SMS Folders...
    Message sent: 0x14 / 0x0006
    00 01 00 12 00 00 |
    SM_Block: exiting the retry loop
    Message sent: 0x14 / 0x0006
    00 01 00 12 00 00 |
    SM_Block: exiting the retry loop (... and so on)


    Why is all this happening ??
    Someone please help !!!

    also,
    to send an sms, i had kept one in outbox, but it faced error 11 (command timed out).

    Why is all thid

Similar Threads

  1. SMS recieved in my application and inbox or one of them
    By ahmed abdelaziz in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2006-09-04, 04:38
  2. Runtime Delete sms from Inbox in Symbian
    By deepakskole2006 in forum Symbian
    Replies: 2
    Last Post: 2006-08-02, 08:33
  3. Nokia6670: SMS Inbox got 'HANG'
    By restinchaos in forum General Messaging
    Replies: 0
    Last Post: 2005-03-10, 06:47
  4. New message in SMS Inbox
    By isseyp in forum Mobile Java General
    Replies: 4
    Last Post: 2004-05-07, 14:45

Posting Permissions

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