Hi friends. How can I get SMS port , to use in my App ? (Sorry if the quastion is dummy !!! I'm new to J2ME ) I mean I want to recieve SMS(s) comming from a number but I don'tknow in which port should I listen for it???
Is it possible to listen for a specific number on any port ? [ October 05, 2006: Message edited by: Kamyar Onikzeh ]
"The greatest pleasure in life is doing what people say you cannot do." --Walter Bagehot<p>SCJP 1.4<br />SCWCD 1.3</p>
You could invent your own port number. However, there is a list of restricted ports that is reserved for the system. Take a look in Appendix A.6.0 of WMA (JSR-205) for the list of reserved port numbers.
Best Regards Johan
Joined: Sep 10, 2003
Thanks for reply ... I know that I can invent a port, but my problem is I don't know the sender on which port is sending the message ! on which port shold I listen for it? for example if I listen on port 1234 is it OK? the sender is sending sms by his/her regular phone ( not from any j2me app ) so what can I do to recive the SMS ? thanks again
Hi, Well if you are trying to get the sms to the J2ME application from the default sms application, I don't think it is possible, cause to register your application to listen to incoming sms you need to specify a port. Hope this helps.. Regards..
SCJP 1.4, SCMAD 1.0<br />SCWCD, SCBCD (in progress)