RNZN
RNZN

Reputation: 107

sms receive form

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

Upvotes: 0

Views: 185

Answers (1)

Nirmal- thInk beYond
Nirmal- thInk beYond

Reputation: 12064

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

Upvotes: 1

Related Questions