Possible Duplicate:
Detecting SMS incoming and outgoing
I want to write a app that run silently. The app needs to be notified about new messages. It just needs to to know when a new message is received, doesn't need to read the content of the message.
How can I achieve this?
Update: Is there a function which checks if there are any new messages at a given time. My idea is to then put this check in a loop, and check for new messages regularily.