短信收到表格

时间:2011-07-11 08:43:19

标签: java java-me sms lwuit

我想以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();
}

1 个答案:

答案 0 :(得分:1)

看到我的回答

How to sort recordstore records based on a certain field in it?

使用preferance类来保存短信