title: How to stop whole activity recreation on orientation change
body: <p>I am new to android. I am doing a sample project on calculation of numbers. And i am using both portrait and landscape layouts. Whenever I change the orientation, my activity is newly created and all the previously entered values get lost. So, I tried to stop activity recreation by <code>android:configChanges="keyboardHidden|screenSize|orientation"</code> and by setting orientation only to <code>android:screenOrientation="portrait"</code>. But this makes my portrait layout to fit in landscape mode. But I don't want this. I need to load my separate portrait and landscape layouts on orientation change with same set of values which was previously created(i.e load different layouts without activity recreation).  </p>
  
  <p>And also I tried of using overridden methods like onConfigurationchanged, onSaveInstanceState, onRestoreInstanceState. But still values are lost in using onConfigurationchanged method , and activity is recreated in using onSaveInstanceState and onRestoreInstanceState methods (Still the previous values are retrieved here).
  Any solution for this?
  Thanks in advance.</p>