I have a ViewPager whose pages are scrolled using tabs. Well, I did something on the second page, assigned Boolean changed = true; , now, by clicking on tab1 (Well, or flipping the screen)), somehow I want:
1. Forward this variable to the first page.
2. How to get it on the first page
3. If the variable is true , for example, display a toast with the text changed
How is this possible to do? Well, the result should be this - on the first page I have a variable that I can use.