I'm creating an activity which have viewpager to show multiple fragments and also an button 'Continue'. Button is used to move to next fragment, mimicing swipe nature of viewpager.
I have kept my fragments very independent from activity and want to communicate the results to parent activity whenever something happens like edit text value changed inside fragment.
What should be best way to inform activity about happening changes inside fragment? Fragment shouldn't know who is parent activity.
Thanks in advance.