Last Updated: February 25, 2016
·
485
· funkysetiz

Orientation change on Android

When you switch orientation on your android phone, Android OS recreate the view which sometimes reloads the images or data from internet.

to reduce that we can add this option to the manifest:
in the activity part, add this

android:configChanges="orientation"

it will do the thing and will not reload the data.

i noticed something on the Android ICS version that it don't actually work properly, but with adding something else:

android:configChanges="orientation|screenSize"

this will do the trick.

PS : sorry for my bad english :)