Hi i try to make a connection with this code but this error shown :
java.lang.IllegalArgumentException: invalid port format
MessageConnection messageConnection = (MessageConnection) Connector.open("sms://开发者_Go百科09364191752");
wath is wrong ? thanks
You have to specify a port number at the end of the phone number, i.e. append ":5000" or whatever.
See http://developers.sun.com/mobility/midp/articles/wma/ for details.
精彩评论