Edit Text to Text view between two fragments, Java : I'm developing an application which has two fragments.
I need to get the text from EditText in one fragment into a TextView in the other.
I have been tried some option but the app is still crashing.

The first Fragment is Tab1Setup.

The second Fragment is Tab2Auto.

I tried:

 @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        //TODO slide to position
        View rootView = inflater.inflate(R.layout.tab1setup, container, false);


        slide = (TextView) rootView.findViewById(R.id.slide);
        textview = (TextView) rootView.findViewById(R.id.textView);

        MatchNumber = (EditText) rootView.findViewById(R.id.MatchNumber);
        ScouterName = (EditText) rootView.findViewById(R.id.ScouterName);
        TeamNumber1  = (EditText) rootView.findViewById(R.id.TeamNumber);
        TeamNumber2 = (EditText) rootView.findViewById(R.id.TeamNumber2);
        TeamNumber3 = (EditText) rootView.findViewById(R.id.TeamNumber3);
 
        Tab2Auto t2a = new Tab2Auto;
 
        t2a.textview.setText(TeamNumber1.getText.toString);


hope you can help.