title: Calling the finish() method of an Activity from a BroadcastReceiver
body: <p>I have 2 Activities (Activity1, Activity2) and a BroadcastReceiver class</p>
  
  <p>Assume that we are now on Activity2, where I set up an AlarmManager to run at a specific time.</p>
  
  <p>Is there a way to call the finish() method of Activity2 within the onReceive() of the BroadcastReceiver?</p>
  
  <p>My goal is to return to Activity1 from Activity2 without starting a new Intent in onRecieve().</p>
  
  <p>Note: The BroadcastReceiver class is not registered within the Activity of Activity2. It is registered in the AndroidManifest.xml.</p>