2
I have an Activity with Actionbar and three Tabs, in each Tab is loaded a different Fragment and in each Fragment of this I have a form.
When you finish filling the three forms, when you tap the save button I want to be able to recover the information of each Ragment and persist in Sqlite.
My question is to know how to access the fields of each Fragment.
I’ve tried using it
Fragment1 detalhes = (Fragment1) fragmentManager.findFragmentByTag("frag1");
but it only works to recover the field in the current Ragment. How do I recover from everyone?
To help you I need to see the code, in your activity, where the management and creation of the
Tab's
.– ramaral