jQuery in Action, 3rd edition
The moose likes Java Micro Edition and the fly likes receive multiple messages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "receive multiple messages" Watch "receive multiple messages" New topic

receive multiple messages

Can H�zmeli

Joined: May 28, 2005
Posts: 1
I need to send multiple binary messages to a cellphone (for example a wallpaper). I need to receive these messages in my application however I can not handle multiple messages. Do you have any suggestions or any examples of that kind.
And also I need to save this file to the memory of the cellphone but this will be the further step. First of all I need to receive multiple messages and concating them.

Thank you...
Eduardo Marques
Ranch Hand

Joined: Feb 19, 2005
Posts: 231

There should be no problem with receiving multiple messages, if the phone you're using supports WMA (Wireless Messaging API).

Does the MessageConnection fail after receiving the first message?

Or perhaps you are using another API ...

Eduardo Marques
Get ready for your SCMAD certification at J2MECertificate.com - See what all the buzz is about ...
Johan Karlsson

Joined: Jan 07, 2005
Posts: 26
There is one problem with using WMA, you are only guaranteed that you can use 3 messages that are tied together. However, these are always in the right order at the application level. But you dont't get very much data into 3 messages

Will you send the data between 2 mobile phones? Or, do you send the message between a computer and a mobile phone?

You could use a SocketConnection, which sends small messages and always guarantee the right order.

If you need to save data on the phone, you should use the FileConnection API. Note that not all phones have FileConnection implemented.
I agree. Here's the link: http://aspose.com/file-tools
subject: receive multiple messages
It's not a secret anymore!