N
N
Nurax65642020-05-05 16:04:23
Android
Nurax6564, 2020-05-05 16:04:23

How to pass Int type data from Activity to Activity in Android Studio?

I need to make sure that in each new activity the sum of the variable from the past activity is added to the current variable. And so time after time. Please tell me how can I do this (I understand, a very stupid question, I'm just a beginner in the field of application development for android studio).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
ValkyrieMadness, 2020-05-05
@ValkyrieMadness

Intent nextActivityIntent = Intent(this, (имя_текущего_класса_Activity).class)
nextActivityIntent.putExtra(YOUR_INTEGER)
startActivity(nextActivityIntent)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question