×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    19

    how to show back-to--back messages

    hi all,

    i'm developing j2me application that can send and receive messages, and it is working, but when two or more messages are coming within the gap of few seconds, i'm not able to view all messages, the last message is overwriting the previous one. Please help me what should i do.

    thanx in advance
    satishchauhan

  2. #2
    Nokia Developer Expert
    Join Date
    May 2007
    Location
    Mexico D.F
    Posts
    351

    Re: how to show back-to--back messages

    Are you having in mind the following consideration:

    When an incoming message arrives, the notifyIncomingMessage() method is called. The application MUST retrieve the message using the receive() method of the MessageConnection.MessageListener should not call receive() directly.
    There is a good example in the javadocs.
    http://library.forum.nokia.com/index...eListener.html

    Let us know
    :Ruben

  3. #3
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: how to show back-to--back messages

    Hi Ruben,
    If I am not wrong then are you pointing towards these lines-
    NOTE: The implementation of this method MUST return quickly and MUST NOT perform any extensive operations. The application SHOULD NOT receive and handle the message during this method call. Instead, it should act only as a trigger to start the activity in the application's own thread.
    And that means next message can only be received after the notifyIncomingMessage(MessageConnection conn) returns.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  4. #4
    Nokia Developer Expert
    Join Date
    May 2007
    Location
    Mexico D.F
    Posts
    351

    Re: how to show back-to--back messages

    Yes, I'm sorry I didnt paste the complete information. It refers to the notifyIncomingMessage() as you say.
    :Ruben

  5. #5
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: how to show back-to--back messages

    Quote Originally Posted by rdrincon View Post
    Yes, I'm sorry I didnt paste the complete information. It refers to the notifyIncomingMessage() as you say.
    Hey,
    Could you please provide me one more information?
    I would like to ask that can my application send me the sms includes the information lets say my friends cell number or so on on receiving of sms....
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. Midlet emulating Cell Broadcast
    By kael in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2008-07-15, 20:43
  2. e90 Bug: international messages barring
    By pietrosperoni in forum Series 40 & S60 Platform Feedback Archive
    Replies: 6
    Last Post: 2008-01-25, 05:25
  3. Static Navigation on/off
    By vvj in forum Symbian
    Replies: 1
    Last Post: 2007-12-25, 07:32
  4. Printing Debug messages on Console
    By prabhupingili in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 2
    Last Post: 2007-11-26, 13:49
  5. Lost all new SMSs
    By komal_bd in forum General Messaging
    Replies: 6
    Last Post: 2007-10-12, 15:00

Posting Permissions

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