public static void navigate(Activity context,View transitionView,String savedAvatarUrl){
  Intent intent=new Intent(context,ChooseAvatarActivity.class);
  intent.putExtra(ProfileActivity.Extra.AVATAR_URL,savedAvatarUrl);
  ActivityOptionsCompat optionsCompat=ActivityOptionsCompat.makeSceneTransitionAnimation(context,transitionView,context.getString(R.string.transition_name));
  ActivityCompat.startActivityForResult(context,intent,ProfileActivity.REQUEST_AVATAR_SELECTION_CODE,optionsCompat.toBundle());
}

public static void navigate ( Activity context , View transitionView , String savedAvatarUrl ) { Intent intent = new Intent ( context , ChooseAvatarActivity . class ) ; intent . putExtra ( ProfileActivity . Extra . AVATAR_URL , savedAvatarUrl ) ; ActivityOptionsCompat optionsCompat = ActivityOptionsCompat . makeSceneTransitionAnimation ( context , transitionView , context . getString ( R . string . transition_name ) ) ; ActivityCompat . startActivityForResult ( context , intent , ProfileActivity . REQUEST_AVATAR_SELECTION_CODE , optionsCompat . toBundle ( ) ) ; }
navigate to this activity < br > start activity with material transition < br > we use startactivityforresult ( ) method to be able to deliver the chosen avatar on profileactivity
