Android : Animation between activity switching

For most of the android apps we do have multiple activities and when we start another activity either we get no animation (in older devices) or  a left-right translation. It is not so cool for a stylish app. We can override these animation in two ways. Here is simplest way  using method “overridePendingTransition”

see the example code for switching between Activity1 and Activity2


This method can be used after calling finish() also.You will have to call these method each time, the other method is using Theme i will explain this next post.