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 :)
Written by SetiZ
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Android
Authors
Related Tags
#android
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#