Java tutorial
//package com.java2s; // Released under the Apache License, Version 2.0 import android.app.Activity; public class Main { /** * Calls {@link Activity#overridePendingTransition(int, int)}. This is used * to set a different animation type for screen transition animations. * * @param activity - The activity handling the animation * @param enterAnim - The enter animation type * @param exitAnim - The exit animation type */ public static void overridePendingTransitions(Activity activity, int enterAnim, int exitAnim) { activity.overridePendingTransition(enterAnim, exitAnim); } }