title: How to stop an activity in android using intent?
body: <p>I think this is a basic question. Is there any option to stop an activity by using intent.</p>
  
  <pre><code>Intent intent = new Intent(Intent.ACTION_CALL,Uri.parse("tel:5554"));
  startActivity(intent);
  </code></pre>
  
  <p>This is my code. I would like to stop this activity (That means, i want to drop this call) if the user is busy or something. What can I do for that? I tried this:</p>
  
  <pre><code>if (condition) {
      Intent intent = new Intent(Intent.ACTION_CALL,Uri.parse("tel:5554"));
      startActivity(intent);
  }else {
      this.finish();
  }
  </code></pre>
  
  <p>But of no use. Does anybody have a suggestion?</p>