Every activity in my application has an animation on its start and finish, so I decided to implement a custom Activity class and inherit my activities from it: