I have an activity that I’m currently overriding the back button on in my app (as to update the list in the prior activity with the information inserted at the current activity). To achieve the desired effect I’m using an AsyncTask which starts an activity. Functionally it works as desired, but the animations are unfortunately off (considering that the “slide” that plays when changing activities is in the wrong direction, as if a new acitivty was started instead of the desired animation that plays when finish() is called).
How would I go about solving this problem?
EDIT: The solution to the problem:
finish();
overridePendingTransition(android.R.anim.slide_in_left, android.R.anim.slide_out_right);
I hope this is what you need
The rest of the code here: Changing the animation between Activities