views:

13

answers:

1

I wanna disable the automatic slide in from right to left animation/transition. All new intents/activities in my app are supposed to have no animation.

How can this be achieved?

+1  A: 

You can disable the windowAnimations from code through calling:

getWindow().setWindowAnimations(0);

in every activity that you want to disable the animations in.

This looks a bit hacky because it will set the animation to some resource id that i hope does not exist and then you are relying on the system no to crash. It works fine in one of my applications but it is not documented that it always will and should work this way. So try it and do your own tests and be aware of this.

Janusz
Will test now...
Julian Assange
It works! Thanks!
Julian Assange
I'm glad that I could help you
Janusz