title: How to switch activity without animation in Android?
body: <p>How can I use properly the Intent flag <code>FLAG_ACTIVITY_NO_ANIMATION</code> in AndroidManifest file? I supose my problem is trivial, but I can't find good example or solution to it.</p>
  <pre class="lang-xml prettyprint-override"><code>    &lt;intent-filter&gt;
          &lt;data android:name=&quot;android.content.Intent.FLAG_ACTIVITY_NO_ANIMATION&quot; /&gt;
      &lt;/intent-filter&gt;
  </code></pre>
  <p>However no error is reported by compliator, but <code>data</code> isn't correct.
  I just want to disable animation in case switching between activities. I can use <code>getWindow().setWindowAnimations(0);</code> in onCreate or onResume rather but using flag is better way, isn't it?</p>
  <p>I can use also in code:</p>
  <pre class="lang-java prettyprint-override"><code>    Intent intent = new Intent(v.getContext(), newactivity.class);
      intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
      getContext().startActivity(intent);
  </code></pre>
  <p>But I want to use this flag in Android Manifest. To disable animation also in case returning from second activity to first.</p>