Remove notification from notification bar from other applications
<p>I want to remove notifications from another application shown in the notification bar. Is that possible? <code>NotificationManager.cancelAll();</code> cancels only notifications shown by the calling application, as far as I know.</p>

<p>Why do I want to do this?</p>

<p>I have an application that reads and sends SMS via a webpage, and I want this application to co-exits with existing SMS applications like Handcent SMS. The way I want it to work is that when reading newly received SMS via the webpage, I want to cancel the new SMS notification shown by Handcent SMS because the new SMS is now read. I'm marking the SMS as read, and Handcent SMS recognize it as read once i open up Handcent SMS, but the notification is still there until i click on the actual SMS.</p>

<p>There are two senarios; number 1:</p>

<ol>
<li>The android device receives a SMS.</li>
<li>A notification is shown by Handcent SMS.</li>
<li>The user reads the SMS on the device.</li>
<li>Handcent SMS removes the notification and marks the SMS as read.</li>
</ol>

<p>Senario 2:</p>

<ol>
<li>The android device receives a SMS.</li>
<li>A notification is shown by Handcent SMS.</li>
<li>The user reads the SMS via the web interface.</li>
<li>My application clear the new SMS notification shown by Handcent SMS and marks the SMS as read.</li>
</ol>

<p>Is this possible?</p>

<p>Regards,
Johan</p>
