0

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();
}
bharath
  • 14,283
  • 16
  • 57
  • 95
RNZN
  • 107
  • 3
  • 12
  • 1
    Also, this question seems unclear to me. What problem are you having specifically, i.e. what behaviour are you *seeing* and what behaviour did you *expect* or want? – Andrzej Doyle Jul 11 '11 at 10:11

1 Answers1

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

Community
  • 1
  • 1
Nirmal- thInk beYond
  • 11,847
  • 8
  • 35
  • 46