-1

When I change device orientation, I am able to change layout properly but its also load data every time from web service. There is no need to call web service each time.

So please suggest.

user3322955
  • 348
  • 1
  • 15
  • http://developer.android.com/training/basics/activity-lifecycle/index.html -- you'll need to persist state through orientation changes, including whether or not your webservice has been called, and any results. – 323go Feb 19 '14 at 06:04
  • handling life cycle methods and yours configurations will solve yours problem11 – Jitesh Upadhyay Feb 19 '14 at 06:05

1 Answers1

1

Add this in manifest under your activity:

android:configChanges="orientation|screenSize" 
Orphamiel
  • 874
  • 13
  • 22