onBackPressed finish() not working in android studio :  I used below code to close activity after back button pressed.
```
@Override
    public void onBackPressed()
    {
       super.onBackPressed();
       finish();
   }
```
after 5 time pressed it worked 

how to solve it
