I want to get the text and sender of the SMS read from the modem so
that I can manipulate it as appropriate and then delete the read and
used messages.this is the part of the code:
I am new to smslib so code examples would suffice.
msgList = new ArrayList<InboundMessage>();
Service.getInstance().readMessages(msgList,
MessageClasses.ALL);
for (InboundMessage msg : msgList)
System.out.println(msg);
// Sleep now. Emulate real world situation and
give a chance to the notifications
// methods to be called in the event of message or
voice call
reception.
System.out.println("Now Sleeping - Hit <enter> to stop
service.");
System.in.read();
System.in.read();
}
2.And then the other problem I am having is that the application reads
the same messages multiple times when I want them to be read only
once. How do I solve this?
Thanks a lot.
--
You received this message because you are subscribed to the Google Groups
"SMSLib Discussion Group" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/smslib?hl=en.