How to change the value of a Textview present in another activity if value of Textview in my current Activity changes in Android?
So I have two activities named “MainActivity” and activity named “Second”, so my MainActivity has it’s own Adapter class named “PractiseAdapter”. So my MainActivity contains a Textview with an id
” textCount ” and a recyclerview named “recyclerView” and a button “btnGo”. The button is used to go to another Activity “Second”. So When I click on the Cardview present in the recyclerview my count of “textCount” keeps increasing by 1. Below is the code of my MainActivity.kt