This question has already been answered:
- Data transfer between Activity 2 replies
There is a long timefinal time that you need to pass to the next Activity in a TextView .
How to do it right?
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?
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 .
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); } Source: https://ru.stackoverflow.com/questions/559123/
All Articles