Animating Activity on onStartActivity
<p>I want to animate an activity while starting another activity.
The animation i am trying to do flip animation.</p>

<p>I tried ActivityOptions and overridePendingTransition with objectanimtor.
I think i am doing wrong ,objectanimator can not be used with these above methods.</p>

<p>Is there any way to animate activity that work for api level 8 also, please also explain the reason why objecanimator not working with ActivityOptions and overridePendingTransition </p>

<p>Below the sample is attached</p>

<pre><code>     &lt;set xmlns:android="http://schemas.android.com/apk/res/android"&gt;
   &lt;!-- Before rotating, immediately set the alpha to 0. --&gt;
        &lt;objectAnimator
    android:valueFrom="1.0"
    android:valueTo="0.0"
    android:propertyName="alpha"
    android:duration="0" /&gt;

      &lt;!-- Rotate. --&gt;
       &lt;objectAnimator
    android:valueFrom="180"
    android:valueTo="0"
    android:propertyName="rotationY"
    android:interpolator="@android:interpolator/accelerate_decelerate"
    android:duration="@integer/card_flip_time_full" /&gt;

        &lt;!-- Half-way through the rotation (see startOffset), set the alpha to 1. --&gt;
       &lt;`objectAnimator`
    android:valueFrom="0.0"
    android:valueTo="1.0"
    android:propertyName="alpha"
    android:startOffset="@integer/card_flip_time_half"
    android:duration="1" /&gt;
      &lt;/set&gt;


        `enter code here`and i used this `xml` like this

        `overridePendingTransition`(`R.anim.card`_flip_right_in,`R.anim.card`_flip_right_out);
</code></pre>
