Skip to content Skip to sidebar Skip to footer

Block The Default Animation For Startactivity

Me started an activity like this Intent mainIntent = new Intent(v.getContext(), Second.class); startActivity(mainIntent); overridePendingTransition(android.R.anim.slide_out_rig

Solution 1:

You can prevent the default animation by setting flag FLAG_ACTIVITY_NO_ANIMATION
like this

mainIntent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);

Post a Comment for "Block The Default Animation For Startactivity"