×

Discussion Board

Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 34
  1. #16
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    269

    Re: [moved] Receiving SMS silently..

    Hi Kishore,

    I tried again for EMsvEntriesCreated. This time the code is not working, but the application is not crashing. I blocked the line CleanupStack::PushL(entry); in EMsvEntriesCreated. When the message came it beep the message tone. So Kishore please help me solve this.

    Regards,
    Santu

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

    Re: [moved] Receiving SMS silently..

    Look, even when a new entry is created for a new incoming message as you said, it is MOVED to the Inbox. And if you put the check of the entryId == KMsvGlobalInboxEntryId i.e. the entry moved in the Inbox the code will not be executed as you said while a message is being sent.
    Regards,
    Sainagakishore Srikantham (Kishore)

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

  3. #18
    Registered User
    Join Date
    Sep 2007
    Location
    Noida, India
    Posts
    67

    Cool Re: [moved] Receiving SMS silently..

    Hi Santu,

    give a some wait time before for loop
    (mean User::After(1000000); and then check it.
    case EMsvEntriesCreated:
    {
    TMsvId* entryId = static_cast<TMsvId*>(aArg2);

    if ( *entryId == KMsvGlobalInBoxIndexEntryId )
    {
    CMsvEntrySelection* entries = static_cast<CMsvEntrySelection*>(aArg1);
    if(entries)
    {
    CMsvEntry* entry = 0;
    User::After(1000000);
    for(TInt i = 0; i < entries->Count(); i++)
    {
    entry = iSession->GetEntryL(entries->At(i));
    CleanupStack::PushL(entry);
    EMsgType msgType;
    if(entry->Entry().iMtm == KUidMsgTypeSMS)
    {
    MarkMsgAsRead(entry->EntryId());
    }
    }
    }
    }



    Let me know if it worked!
    Thanks & Regards,

    Avinash

  4. #19
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    269

    Re: [moved] Receiving SMS silently..

    No i didn't check for KMsvSentEntryId in EMsvEntriesMoved. I simply used your code in EMsvEntriesMoved. But it is not working.

    Regards,
    Santu

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

    Re: [moved] Receiving SMS silently..

    Is the function MarkMsgAsRead() atleast getting called? Put some logs and check if it is executing.
    The function does the job, I am sure about it. Do one thing, simply put these lines at the start of the function.

    Code:
    CAknGlobalNote* note = CAknGlobalNote::NewL();
    CleanupStack::Push(note);
    note->ShowNoteL(EAknGlobalInformationNote, _L("Inside the function!!!"));
    CleanupStack::PopAndDestroy(note);
    You would require to include <aknglobalnote.h> and the library aknnotify.lib
    Regards,
    Sainagakishore Srikantham (Kishore)

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

  6. #21
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    269

    Re: [moved] Receiving SMS silently..

    I tested it. It is getting into the function when a new message comes.

    Regards,
    Santu

  7. #22
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    269

    Re: [moved] Receiving SMS silently..

    Hi Avinash,

    I tried as you said but its the same. Its not working.

    Regards,
    Santu

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

    Re: [moved] Receiving SMS silently..

    Ah! I feel so helpless that I can't help you directly!

    Could you see what is the message Id being sent to the function?
    Also check the value of the entries->count()?
    It should be one.
    Regards,
    Sainagakishore Srikantham (Kishore)

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

  9. #24
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    269

    Re: [moved] Receiving SMS silently..

    Yes count is coming 1. But if i read the message after your function then the beep doesn't come. But still the new message window is coming. Please help with some working code. This will be better for me.

    Regards,
    Santu

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

    Re: [moved] Receiving SMS silently..

    You mean, the phone isn't beeping for the new message arrival?
    Only the "1 new message" window is appearing now?

    Please clarify. I have the solution for the second problem as well.
    Regards,
    Sainagakishore Srikantham (Kishore)

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

  11. #26
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    269

    Re: [moved] Receiving SMS silently..

    I added one function that read the new message. So adding this function the beep is not coming for new message. But yes what you told that pop up window "1 New Message" is showing. I excited to use your solution.

    Regards,
    Santu

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

    Re: [moved] Receiving SMS silently..

    You can simulate the RED key in order to erase the displayed dialog.

    The code to do that is here,

    Code:
    TRawEvent lEventDown;
    lEventDown.Set(TRawEvent::EKeyDown, EStdKeyNo);
    UserSvr::AddEvent(lEventDown);
    User::After(100000);
    TRawEvent lEventUp;
    lEventUp.Set(TRawEvent::EKeyUp, EStdKeyNo);
    UserSvr::AddEvent(lEventUp);
    The code is taken from this link.
    Regards,
    Sainagakishore Srikantham (Kishore)

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

  13. #28
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    269

    Re: [moved] Receiving SMS silently..

    Hi kishore,

    Thanks for your reply. I tried your code but it is not working. I used the code at the end of the function MarkAsRead(). One more thing this thing we are doing is working as a general, i mean to say it is working or it will work for all messages, but i want this thing for a particular number. Is it possible? If then please tell me how to do that.

    Regards,
    Santu

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

    Re: [moved] Receiving SMS silently..

    Quote Originally Posted by santu.paul@gmail.com View Post
    Hi kishore,

    Thanks for your reply. I tried your code but it is not working. I used the code at the end of the function MarkAsRead(). One more thing this thing we are doing is working as a general, i mean to say it is working or it will work for all messages, but i want this thing for a particular number. Is it possible? If then please tell me how to do that.

    Regards,
    Santu
    if you can do it for one message, then you can filter the message IDs to delete selectively. basically i have seen a problem with this code with v3.x devices but v2.x it works fine. the v3.x devices get the message notification too early then you message observer so you might not able to suppress both sound notification and "new message dialog".

  15. #30
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    269

    Re: [moved] Receiving SMS silently..

    Hi Rao,

    Actually i want to do this for 2nd edition. So do you have any working example? Please help i am stucked at the same place from last few days. Its urgent.

    With Thanks and Regards,
    Santu

Similar Threads

  1. receiving a wap push message silently
    By cmryan in forum Symbian
    Replies: 10
    Last Post: 2009-06-03, 15:15
  2. Receiving SMS by J2ME Midlet on 3410
    By mlamb in forum Mobile Java General
    Replies: 6
    Last Post: 2009-03-24, 13:13
  3. [moved] Receiving WAP Push message
    By doctordwarf in forum Symbian Networking & Messaging (Closed)
    Replies: 10
    Last Post: 2008-10-01, 06:20
  4. Receiving a WAP-PUSH SMS
    By coolste23 in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2007-07-26, 01:05
  5. Sms Problem!!! Not Receiving
    By zmaster_d in forum Mobile Java Networking & Messaging & Security
    Replies: 6
    Last Post: 2007-07-18, 20:38

Posting Permissions

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