When pressing the backbutton I want that, whatever screen will be loading, the onCreate() method will be executed. I want this because the screens must be refreshing when navigating through the app.
Do I need to override the back button method?
if(keyCode == KeyEvent.KEYCODE_BACK)
{
}
When you press the back button, the onResume() method is called, so instead of using onCreate(), use this and do whatever you need to do for refreshing the activity.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With