I'm a beginner in android development. I have a Fragment (FragA) in which I have a button that does a calculation and set the value to a variable (x) and pass this value to another fragment (FragB). Every time I press the button in FragA the value of "x" is passed to FragB.
Now, what I want is to do an action in FragB (refresh the view of a graph) each time the value of "x" is changed. If you need more information feel free to ask.
Thanks