Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WMA MIDlets, how do you receive sms without a port no.

 
Ian Strain
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm writing a MIDlet that listens for incoming sms messages. It is listening on port 50000. When I send a sms message from a MIDlet I created that sends a sms message using port 50000 it receives it no problem. But if I send a sms message from a mobile not using this MIDlet then it won't receive it. I think this is because normal sms message aren't sent with a port number or I'm using the wrong one.
How can you interept with port to listen for or what port do all sms message use
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Portless" SMS message is never delivered to the Java runtime. It is always intercepted by the device's native SMS inbox. If your device support accessing the inbox from Java (e.g., JSR 75 or proprietary API), you can get the message by monitoring the native inbox.
 
Ian Strain
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Phones that use JSR-75 are very rare are they not? I've only found 2 nokia phones supporting it. Is there a site that lists them all? Whats the proprietary API?
 
Yenni Mahardika
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can u tell me which nokia phones that support jsr 75?
thanks.
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nokia 9500 and 6630 support JSR 75.

Most Motorola phones have some sort of proprietary API for inbox access.
 
Yenni Mahardika
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oic, but how can our mobilephone listening for incoming message from any port sending to them?
is there any solution to receive sms from unknown port?
 
Ian Strain
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like receiving portless sms messages using a MIDlet can't be done!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic