The FLAG_ACTIVITY_NO_ANIMATION flag works fine for disabling the animation when starting activities.
However, I can't seem to find a way to disable the similar animation that is triggered when i call finish() on an Activity, i.e the animation slides from right to left instead.
I tried setting the flag on the Intent passed to Activity.setResult(...) but it does not seem to make any difference.
Anyone know how to solve this?
EDIT:
Found the solution, you can call overridePendingTransition(0, 0) after calling finish() and the next animation will be excluded.
This also works on the in-animation if you call overridePendingTransition(0, 0) after calling startActivity(...)