I am doing a simple app, in which I am implementing tabhost. what the program should do is get the values which we have entered in editText of fragments in tabhost and it should display it in the last fragment when we click the button in the last fragment.
I have two ideas for doing it.
One is getting the values of Edittext of that fragment to same fragment and sending the value to last fragments.
And the other is directly retrieving the data of all fragments to last fragment directly.
Plzz suggest me the method to do it. Which is good and which is possible.
Thanks in advance.