How to cancel an alarm in android?
<p>I am trying to cancel all alarms other an intent</p>

<p>i am sending stuff in using
<code>new gofile(this).setSilent(mRowId, mCalendar);</code></p>

<p>that then goes to gofile</p>

<pre><code>  public class gofile {
private Context goon
private AlarmManager alarm;

public gofile(Context goon){
       mContext = context;
       alarm = (AlarmManager)goon.getSystemService(Context.ALARM_SERVICE);


}

public void setSilent(Long Id, Calendar when){
     Intent i = new Intent(gon, anohterclass.class);
     PendingIntent go = PendingIntent.getBroadcast(goon, 0 , i, PendingIntent.FLAG_ONE_SHOT);
     alarm.set(AlarmManager.RTC_WAKEUP, when.getTimeInMillis(), go);
</code></pre>

<p>how would i cancel the alarms from another file? </p>
