I am new to Android. When I open a new activity, I need to create an fade in animation for the opening activity. eg: Currently I am in activity "A", now I want to open another activity "B" on a button click. Now I could open an activity without any animation. But I would like to give a Fade In animation. Now, following code is used to open an activity.
Intent profileActivity = new Intent(Login.this, Profile.class);
startActivityForResult(profileActivity, 0);
Here "profileActivity" should open with a Fade In animation. What could I make in the above code to make an animation.
Thanks in advance.