In my application manifest I\'ve add android:configChanges to prevent activity reload/restart on rotate
By setting android:configChanges="orientation|keyboardHidden|screenSize"
You declare that you will handle these config changes by yourself. In normal cases, you should not set that, and let Android recreate your Activity.
Edit:
If you want to keep the line android:configChanges
, you have to override onConfigChanged()
and change everything needed by yourself, e.g. the size of the ActionBar/ToolBar.