title: access to activity from BroadCastReceiver.onReceive
body: <p>Im developping alarm application.</p>
  
  <p>I'm using listview on activity to reserve alarm.
  after application finish BroadcastReceiver.onReceive() method, 
  I want to remove check of list. </p>
  
  <p>But i dont know how to access to activity.
  anybody knows?</p>
  
  <p>The following is my code:</p>
  
  <pre><code>public class Activity_001 extends ListActivity {
  
          Intent intent = new Intent(this, ReceiverGenerateAlarm.class);
          intent.setAction(Conf.GenerateAlarm);
          intent.putExtra(cal,timerList.get(0).getCal().getTimeInMillis(）)
  
          PendingIntent sender = PendingIntent.getBroadcast(this, 0, intent,
  0);
  
          AlarmManager am = (AlarmManager)
  (this.getSystemService(ALARM_SERVICE));
  
          am.set(AlarmManager.RTC_WAKEUP,
  timerList.get(0).getCal().getTimeInMillis(), sender);
  
  }
  </code></pre>
  
  <p>.</p>
  
  <pre><code>public class ReceiverGenerateAlarm extends BroadcastReceiver {
  
          @Override
          public void onReceive(Context context,Intent intent) {
  
                  String action = intent.getAction();
                  if(action.equals(Conf.GenerateAlarm)) {
  
                          Bundle bundle=intent.getExtras();
                          long cal = bundle.getLongArray("cal");
  
                          Calendar c = Calendar.getInstance();
                          c.setTimeInMillis(cal);
  
                          MediaPlayer_inherit_Class tm = new MediaPlayer_inherit_Class(cal); 
                          tm.play();
  
                          //in here, wanna access alarm reservation list and remove check of list. as application has executed.
                          //set next alarm, if needed. 
                  } 
  </code></pre>