三星
SM sm = new SM();
sm.setDestAddress("10086");
sm.setData("hello, world");
SMS.send(sm);
通用
String address = "sms://+10086"
MessageConnection conn = (MessageConnection)Connector.open(address);
TextMessage msg = (TextMessage)conn.newMessage(MessageConnection.TEXT_MESSAGE);
msg.setPayl ...
public Properties load(String res) throws IOException
{
Properties prop = new Properties();
DataInputStream is = null;
try
{
is = new DataInputStream(this.getClass().getResourceAsStream(res));
StringBuffer sb = new StringBuffer() ...







评论排行榜