I have one activity which is loading data from webservice.whenever I changed my orientation it load again and again.how can I restrict? I have searched but all of them told to set one orientation like `android:screenOrientation="portrait"`.But I want Both orientation.

anyone can help me please?