Good afternoon friends.
I have the following problem, I am making a simple application in which it is basically a counter, I have a textview
and 2 buttons, one to add and another to subtract the value that is in textview
but it happens that it is normally 0 , I do the counts and I get to for example 2, but if I go to another activity or I put the button out and back, it reappears the 0 and not the 2, as I do to solve this, I know it has to do with the life cycle of a activity and I have reviewed many tutorials using the onsavedInstanceState
method but it does not work, I have seen that there is one of onStop and > onPause but I really do not know how to implement them, what suggestions do you give me? or How could I fix this situation?
Thank you all