I am not sure how to get this information on my apps: how to know when an activity has been restarted because of a configuration change? (any configuration change).
In my code I need to execute a method if the activity restarted "normally" but not because of a configuration change.