Java 短信接收表

Java 短信接收表,java,java-me,sms,lwuit,Java,Java Me,Sms,Lwuit,我想以LWUIT格式显示从wma控制台发送的消息。。。 短信存储在记录中。。。我需要从记录中获取短信。。 我已将短信储存在记录中,但在检索和显示时遇到问题 if (ae.getSource()==inboxlist){ iform = new Form("Message"); try { record = RecordStore.openRecordStore("Sms", true ); s = new Str

我想以LWUIT格式显示从wma控制台发送的消息。。。 短信存储在记录中。。。我需要从记录中获取短信。。 我已将短信储存在记录中,但在检索和显示时遇到问题

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();
}
请参阅我的答案


使用Preference类,就像它用来保存sms一样

另外,这个问题对我来说似乎不清楚。你具体遇到了什么问题,即你看到了什么行为,你期望或想要什么行为?好的。。。我以各种方式解决了这个问题