How to terminate a call programmatically under Android?
<p>I am using the following code for dialing programmatically under Android. </p>

<pre><code>try {
    Intent callIntent = new Intent(Intent.ACTION_CALL);
    callIntent.setData(Uri.parse("tel:123456789"));
    startActivity(callIntent);
} catch (Exception exception) {
    log.e("dialing-example", "Call failed", Exception);
}
</code></pre>

<p>But how can I terminate the call programmatically?</p>
