Base on this question, how can I init variable in Fragment1 when I navigate to it. Let's say
Fragment1 has mCount(int) which I want it to be 0 every time I navigate to Fragment1.
Because in Fragment1, it will have the event that change the variable mCount.
And Fragment1 will not calling onCreateView
if I go Fragment0 and Fragment1 back and forth.
I cannot find the way to init variable because fragment will get position 2 which is Fragment2.
Thank you in advance for any help or any suggestions.