短信接收表格

发布于 2024-11-19 04:39:15 字数 587 浏览 4 评论 0原文

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

I wanna display the message sent from wma console in LWUIT form...
The sms are stored in record ... and I need to get the sms from the record ..
I have stored the sms in record but having problem in retrieving it and displaying

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦言归人 2024-11-26 04:39:15

请参阅我的答案

如何根据其中的某个字段对记录存储记录进行排序?

使用偏好类,因为它用于保存短信

see my answer at

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

use preferance class as it used to save sms

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文