Which method is preferred to override onBackPressed?
<p><strong>First case</strong></p>

<pre><code>public boolean onKeyDown(int keyCode, KeyEvent event) {
    if (keyCode == KeyEvent.KEYCODE_BACK) {
</code></pre>

<p><strong>Second case</strong></p>

<pre><code>OnBackPressed();
</code></pre>

<p>Which case is better to override backKeypress event?</p>
