How to change value of textview in activity A after clicking on button which is present in activity B in android?
I have two activities in my app. In Activity A (MainActivity.kt) I have two buttons named buttonGo
and buttonCounter
. If I click on buttonGo
it will go to another activity B (Second.kt). What I want to achieve is, everytime I click on buttonCounter
the textCounter(Textview)
present in activity B should increment by 1. Currently, no increment takes place.