Back button press twice before quitting app
<p>How can I configure the back button to be pressed twice before the app exits? I want to trigger </p>

<pre><code>@Override
public void onBackPressed() {
    //custom actions
    //display toast "press again to quit app"
    super.onBackPressed();
}
</code></pre>
