In all the applications I have developed I have been using
android:configChanges="keyboardHidden|orientation|screenSize"
to forcibly stop Android from restarting the Activity when screen is rotated. But recently I saw in some SO answers such as this one that advise against this. I would like to know why this is a bad approach and why Android insists on restarting an activity when screen is rotated.
Thank you.