I am using a slide in animation to open activities in my app by using overridePendingTransition. Earlier when i used it after startActivity(intent) withiout intent flags , it was working fine. With intent flags it was not working so i used overridePendingTransition in onResume() method now when the activity is started for the first time the animation is fine but when the same instance is brought to front because of intent flag the animation is working but its not smooth . The second time the activity start from right to slide in(which is correct) but it appears with jerk.
These are the intent flags i am using
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);
What should be done to solve this.Help Plz
This is the code i use for slide in animation i.e enter_anim
<translate
android:duration="200"
android:fromXDelta="100%"
android:fromYDelta="0%"
android:toXDelta="0%"
android:toYDelta="0%" />
since i dont wanna give any exit_anim
<translate
android:duration="200"
android:fromXDelta="0%"
android:fromYDelta="0%"
android:toXDelta="0%"
android:toYDelta="0%" />
So try below code in your manifest:- in application add this
try the following code