Skip to content
This repository was archived by the owner on May 7, 2026. It is now read-only.
This repository was archived by the owner on May 7, 2026. It is now read-only.

unread messages ? its not in the right spot #41

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions