×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    4

    the possibility to make 2 connection to receieve SMS and MMS in one midlet

    Hi guys,

    I am sorry if this question has been asked before,

    I just want to ask that is it possible to make 2 connection to receive both sms and mms in one midlet application?
    since I've this code

    Code:
     smsconn = (MessageConnection)Connector.open(smsConnection);
                    smsconn.setMessageListener(this);
                    mmsconn = (MessageConnection) Connector.open(mmsConnection);
                    mmsconn.setMessageListener(this);
    when I receive MMS, I got notified but when try to receveive the MMS, I got nothing.

  2. #2
    Super Contributor
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,699

    Re: the possibility to make 2 connection to receieve SMS and MMS in one midlet

    Hi sherlock,

    are you handling which connection is fired when using the same listener?
    e.g.:
    Code:
     public void notifyIncomingMessage(MessageConnection conn) {
     	if (conn == mmsconn) {
     	    someReader.handleMessage(conn);
     	} else if(conn == smsconn){
     	    otherReader.handleMessage(conn);
            }
    }
    regards,
    Peter

  3. #3
    Registered User
    Join Date
    Aug 2006
    Posts
    4

    Re: the possibility to make 2 connection to receieve SMS and MMS in one midlet

    yes,

    I exactly do that, and still it won't receive the mms.

Similar Threads

  1. MMS Interruption during GPRS connection hangs the device?
    By alexhong in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2004-08-31, 18:47
  2. MMS Interruption during GPRS connection hangs the device?
    By alexhong in forum Mobile Java General
    Replies: 0
    Last Post: 2004-08-31, 18:45
  3. MIDlet interruption when an incoming SMS, call or MMS
    By alcares in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2004-04-22, 15:47
  4. connection to server via SMS or MMS
    By amattiuz in forum Mobile Java General
    Replies: 6
    Last Post: 2003-10-10, 14:32
  5. SMS Spec info plz for MMS Notification
    By muralimohank in forum General Messaging
    Replies: 2
    Last Post: 2003-05-28, 13:08

Posting Permissions

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