• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 1436
6
Python TypeScript Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can u tell me which nokia phones that support jsr 75?
thanks.
 
Michael Yuan
author
Posts: 1436
6
Python TypeScript Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks like receiving portless sms messages using a MIDlet can't be done!
 
I am not a spy. Definitely. Definitely not a spy. Not me. No way. But this tiny ad ...
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic