I created an app that has relatively many activities in it and I allow users to click on the return button which uses onBackPressed()
;
The users can click multiple times on this button in order to return some screen.
However, how can I know when it is the last activity before it exits the app?
Is there any way to know that at this specific click the app will close and not return to other activity?
Thank you