You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 7, 2026. It is now read-only.
What steps will reproduce the problem?
1.
Collection<SMSThread> smsThreads = voice.getSMSThreads(voice.getUnreadSMS());
for (SMSThread t : smsThreads)
{
Collection<SMS> allsms = t.getAllSMS();
for (SMS smsind : allsms)
{
if (smsind.getContent().contains(passcode))
{
String emergencyMsg = smsind.getContent().replaceAll(passcode, "");
OsisUserDatabase oInsertOsisDatabase = new OsisUserDatabase();
List<String> phn = oInsertOsisDatabase.getAllPhoneNumbersSendSMS();
for (String oPhn : phn)
{
String destinationNumber = oPhn;
voice.sendSMS(destinationNumber, emergencyMsg);
}
}
voice.markAsRead(t.getId());
}
}
2.
3.
What is the expected output? What do you see instead?
I expect to on get a collection of unread messages
What version of the product are you using? On what operating system?
1.14
Please provide any additional information below.
There must be a way to parse out the unread messages. It would be good if you
could add a function instead of getAllSMS to just getALLUNREADSMS
Original issue reported on code.google.com by stevenco...@gmail.com on 3 May 2012 at 3:45
Original issue reported on code.google.com by
stevenco...@gmail.comon 3 May 2012 at 3:45