Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

receive multiple messages

 
Can H�zmeli
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi;
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
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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 ...
 
Johan Karlsson
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic