title: Close activity from service
body: <p>How to close an <code>Activity</code> from a service. Here's my code in service</p>
  
  <pre><code>public void run() {             
      Date dt = new Date();
      int minutes = dt.getMinutes();
      if (minutes % 2 == 0) {
          stopThread();
          Intent i = new Intent();
          i.setClass(this, show_act.class); 
          i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
          startActivity(i);    
      }
      else{ 
         //what must i do,. How to close show_act activities from service     
      }
  }
  </code></pre>
  
  <p>Please help me solve this  . .</p>