transition between activities - "back button" animation

view story

http://stackoverflow.com – I want that when a certain view in my app is clicked, it will switch to another activity but with a different transition - instead of the regular slide to right transition, I want it to be the exact opposite. Now, I have managed to do this with the following code: @Override public void onClick(View view) { // TODO Auto-generated method stub v.vibrate(50); Intent back = new Intent(Course.this, Classes.class); back.putExtra("lvl", lvl); startActivity(back); overridePendingTransition(android.R.anim.slide_in (HowTos)