how to disable system activities transition animations

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

how to disable system activities transition animations

Postby glouzaille » Mon Nov 23, 2009 6:12 pm

Hello, my application does not use screen transitions so i want to make sure that even if a user enabled the screens animation transitions via his phone system preferences when using my apps, no transitions apply.

I have found that i can use a flag with my intents : FLAG_ACTIVITY_NO_ANIMATION to not use the transitions while my application his active.

Can someone help me with the way to use this flag or maybe there is a better way.
thanks
glouzaille
Freshman
Freshman
 
Posts: 5
Joined: Mon Nov 23, 2009 2:32 pm

Top

Postby qlimax » Mon Nov 23, 2009 9:38 pm

....
intent.setFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
startActivity(intent);

note: this feature is available only since api level 5 => android 2.0

bye
¯`·.¸¸.><((((º>¯`·.¸¸. ><((((º>
User avatar
qlimax
Master Developer
Master Developer
 
Posts: 271
Joined: Mon Aug 31, 2009 10:54 am
Location: Swiss

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 7 guests