我想以LWUIT格式显示从wma控制台发送的消息... 短信存储在记录中...我需要从记录中获取短信.. 我已将sms存储在记录中,但在检索和显示
时遇到问题if (ae.getSource()==inboxlist){
iform = new Form("Message");
try {
record = RecordStore.openRecordStore("Sms", true );
s = new String(record.getRecord(smsindex));
inb = new Label();
inb.setText(s);
} catch (RecordStoreException ex) {
ex.printStackTrace();
}
iform.addComponent(inb);
iform.addCommand(exit);
iform.setCommandListener(this);
iform.show();
}
答案 0 :(得分:1)