Thank you for your question.
It is not possible. Here
's a more detailed explanation. Here
you can read more about the Activity's lifecycle and onStop
, however it will also be called if you navigate to another activity, so even if this is the closest thing to your requirement, I don't think it will be enough unless you have a single-activity-app.
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items