title: Disable default animation from Portrait to Landscape
body: <p>I have an app with several 'normal' activities which can run on either landscape or portrait. They are designed for and mostly used on portrait.</p>
  
  <p>This app has one single activity which uses the camera and is locked on landscape. I 'simulate' this activity is on portrait by rotating images and texts 90 degree, so it looks like the rest of activities.</p>
  
  <p>On some device, such as Samsung Galaxy Tab 7 and Galaxy S3, <strong>a rotation animation is shown when going from a normal portrait activity to camera landscape activity and back</strong>. This is confusing for user because landscape activity simulates being on portrait.</p>
  
  <p><strong>Is there a way to remove this rotation animation</strong>? Ideally I'd like to change to default portrait to portrait animation, but just removing rotation animation would be enough.</p>
  
  <p>I've tried </p>
  
  <pre><code>overridePendingTransition(0, 0);
  </code></pre>
  
  <p>an other variations of that method without success.</p>
  
  <p>[ADDED]</p>
  
  <p>Following suggestions by @igalarzab, @Georg and @Joe, I've done this (still with no luck):</p>
  
  <ul>
  <li>Added android:configChanges="orientation|screenSize" to Manifest</li>
  <li>Added onConfigurationChanged</li>
  <li>Created a dummy animation which does nothing and added overridePendingTransition(R.anim.nothing, R.anim.nothing);</li>
  </ul>
  
  <p>I had these results:</p>
  
  <ul>
  <li>onConfigurationChanged is called only when rotating same Activity (Activity A on portrait -> Activity A on landscape). But it's not called when going from Activity A on portrait -> Activity B on landscape</li>
  <li>This prevented Activity from being restarted when rotating, but it did NOT removed rotation animation (tested on Galaxy S3, Galaxy Nexus, Galaxy Tab 7.0 and Galaxy Tab 10.1)</li>
  <li>overridePendingTransition(R.anim.nothing, R.anim.nothing); removed normal transitions (portrait->portrait and landscape->landscape) but it didn't removed rotation animation (portrait->landscape and vice versa).</li>
  </ul>
  
  <p>[VIDEO]</p>
  
  <p>I've uploaded a video that shows animation I want to disable. This happens when changing from camera activity (locked to landscape) to other activity while holding phone on portrait:</p>
  
  <p><a href="http://youtu.be/T79Q1P_5_Ck">http://youtu.be/T79Q1P_5_Ck</a></p>