• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

receive multiple messages

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ...
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic