I have a main screen for my application which then leads to different screens, from each of those hitting back takes you back to the main screen. I want to do some stuff every time a user is "coming back" to the main screen, How do I catch this kind of event???
Use onResume() method in your main activity or Use startActivityForResult method in your activity by overriding the keyDown method in sub activities,it may help you
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