title: Activity Restarts when Orientation changes android?
body: <p>I have a application ,where I am using Landscape and potrait mode. I have used <strong>android:configChanges="orientation|keyboardHidden"</strong> in my every activity. So When I run this on device 2.3 its completely working fine and the activity is not restarted. But  When I open the same application in android 4.0 and above the activity gets restarted whenever a orientation is changed.
   Here is my xml file.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.iconnect.collaborator"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
  
      &lt;uses-sdk
          android:minSdkVersion="8"
          android:targetSdkVersion="17" /&gt;
      &lt;supports-screens android:largeScreens="true"
          android:normalScreens="true" android:smallScreens="true"
          android:anyDensity="true" /&gt;
      &lt;supports-screens android:smallScreens="true" /&gt;
      &lt;supports-screens android:normalScreens="true" /&gt;
      &lt;supports-screens android:largeScreens="true" /&gt;
  
  
     &lt;uses-permission android:name="android.permission.CAMERA" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
      &lt;uses-feature android:name="android.hardware.camera" /&gt;
      &lt;uses-feature android:name="android.hardware.camera.autofocus" /&gt;
      &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
      &lt;uses-permission android:name="android.permission.FLASHLIGHT" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/&gt;
  
  
      &lt;application
  
          android:icon="@drawable/cnlogomini"
          android:label="CollaborateNow"
          android:largeHeap="true"
        android:allowBackup="true"
          android:theme="@style/AppTheme" &gt;
          &lt;activity android:name="jim.h.common.android.zxinglib.CaptureActivity"
              android:screenOrientation="landscape" android:configChanges="orientation|keyboardHidden"
              android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
              android:windowSoftInputMode="stateAlwaysHidden" /&gt;
          &lt;activity android:name=".Register"
            android:configChanges="orientation|keyboardHidden" &gt;&lt;/activity&gt;
          &lt;activity android:name=".ppllogincopy"
  
             android:configChanges="orientation|keyboardHidden"&gt;&lt;/activity&gt;
  
  &lt;activity android:name=".Password"
  
             android:configChanges="orientation|keyboardHidden"&gt;&lt;/activity&gt;
          &lt;activity android:name=".Camerascan"
  
             android:configChanges="orientation|keyboardHidden"&gt;&lt;/activity&gt;
          &lt;activity android:name=".TabGroup1Activity"
  
              android:configChanges="orientation|keyboardHidden"&gt;&lt;/activity&gt;
          &lt;activity android:name=".newtab"
  
              android:configChanges="orientation|keyboardHidden"&gt;&lt;/activity&gt;
           &lt;activity android:name=".SubmitData"
  
              android:configChanges="orientation|keyboardHidden"&gt;&lt;/activity&gt;
           &lt;activity android:name=".peoplelist"
  
           android:configChanges="orientation|keyboardHidden"&gt;&lt;/activity&gt;
           &lt;activity android:name=".GenerateQrcode"
  
          android:configChanges="orientation|keyboardHidden"&gt;&lt;/activity&gt;
           &lt;activity android:name=".contact"
  
             android:configChanges="orientation|keyboardHidden"&gt;&lt;/activity&gt;
           &lt;activity android:name=".peoplelistlogin"
  
            android:configChanges="orientation|keyboardHidden"&gt;&lt;/activity&gt;
           &lt;activity android:name=".Startnew"
               android:configChanges="orientation|keyboardHidden"
  
              &gt;&lt;/activity&gt;
            &lt;activity android:name=".projectdetails"
  
             android:configChanges="orientation|keyboardHidden"&gt;&lt;/activity&gt;
             &lt;activity android:name=".Signup"
  
              android:configChanges="orientation|keyboardHidden"&gt;&lt;/activity&gt;
            &lt;activity android:name=".RegisterScan"
  
              android:configChanges="orientation|keyboardHidden"&gt;&lt;/activity&gt;
            &lt;activity android:name=".peoplelistscan"
  
             android:configChanges="orientation|keyboardHidden"&gt;&lt;/activity&gt;
          &lt;activity android:name=".Profile"
  
              android:configChanges="orientation|keyboardHidden"&gt;&lt;/activity&gt;
          &lt;activity android:name=".List"
  
              android:configChanges="orientation|keyboardHidden"&gt;&lt;/activity&gt;
          &lt;activity android:name=".Logout"
  
             android:configChanges="orientation|keyboardHidden"&gt;&lt;/activity&gt;
          &lt;activity android:name=".scanRegister"
  
              android:configChanges="orientation|keyboardHidden"&gt;&lt;/activity&gt;
          &lt;activity android:name=".scanList"
  
              android:configChanges="orientation|keyboardHidden"&gt;&lt;/activity&gt;
          &lt;activity android:name="scanCamera"
  
              android:configChanges="orientation|keyboardHidden"&gt;&lt;/activity&gt;
          &lt;activity android:name="com.iconnect.collaborator.Camera"
  
           android:configChanges="orientation|keyboardHidden"&gt;&lt;/activity&gt;
         &lt;activity android:name=".collaborations"
  
             android:configChanges="orientation|keyboardHidden"&gt;&lt;/activity&gt;
  
  
          &lt;activity
              android:name="com.iconnect.collaborator.MainActivity"
  
  
              android:label="@string/app_name" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>