Therefore, I know that you can use your own animation between actions using the overidePendingTransition method. I set the transition between the two actions, and it works fine on my emulator, but I don't see the transition when I launch the application on my phone. How can it be?
2.2 works in my emulator since my phone
Here is my onCreate method
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); final Button button = (Button) findViewById(R.id.close); button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Intent myIntent = new Intent(ActivityTransitionActivity.this, ActivityTwo.class); ActivityTransitionActivity.this.startActivity(myIntent); overridePendingTransition(R.anim.fadein, R.anim.fadeout); } }); }
source share