I want to apply an activities transition like the one that HTC phones have: When you start a new Activity there is a slide right-to-left, but when you press the back button to return to the previous Activity, there is a slide left-to-right animation.
I have used overridePendingTransition
in the onResume
of my Activities to simulate the slide right to left animation, but when I press the back button, the same animation is executed which is wrong (from a result perspective).
Thus I would like to ask how to manage having different animations for an Activity, one for when it is created, and one for when the user press back key.
Thanks a lot!