Clear text message notification programmatically

view story

http://stackoverflow.com – I made an app that works in the place of the stock messages app. It's basically a popup that displays the text message when it comes in. When a text message comes in, the phone obviously puts a notification in the notification tray. How do I clear this notification once the user has viewed my popup? When he views my popup, the message is marked as "Read" in the inbox, but the notification isn't cleared. How do I do this? Thanks! (HowTos)