短信接收表格
我想以 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅我的答案
如何根据其中的某个字段对记录存储记录进行排序?
使用偏好类,因为它用于保存短信
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