This question has already been answered:

There is a long timefinal time that you need to pass to the next Activity in a TextView .

How to do it right?

Reported as a duplicate by pavlofff android Aug 25 '16 at 3:28 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

    1 answer 1

    Through intent:

    FirstActivity.java

     ... Intent intent = new Intent(this, SecondActivity.class); intent.putString("tag", timefinal); startActivity(intent); ... 

    SecondActivity.java

     @Override protected void onCreate(Bundle savedInstanceState) { String timefinal = getIntent().getString("tag"); textView.setText(timefinal); }