How to know when the phone receives a message
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2735571/detecting-sms-incoming-and-outgoing">Detecting SMS incoming and outgoing</a>  </p>
</blockquote>



<p>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.</p>

<p>How can I achieve this?</p>

<p>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.</p>
